Commit b198a2b9 authored by Petri Hintukainen's avatar Petri Hintukainen

Fix memory leak in error path

parent 0ee2cbed
...@@ -190,6 +190,7 @@ static char *_cs0_to_utf8(const uint8_t *cs0, size_t size) ...@@ -190,6 +190,7 @@ static char *_cs0_to_utf8(const uint8_t *cs0, size_t size)
break; break;
default: default:
udf_error("unregonized string encoding %u\n", cs0[0]); udf_error("unregonized string encoding %u\n", cs0[0]);
free(out);
return NULL; return NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment