Closed memory leak with lack of memory during ISO image loading.

Coverity CID 12565.
This commit is contained in:
Thomas Schmitt 2015-10-09 13:38:47 +02:00
parent d04f438ba1
commit b9ccdeda72

View File

@ -2884,6 +2884,8 @@ int iso_image_filesystem_new(IsoDataSource *src, struct iso_read_opts *opts,
data->local_charset = strdup(iso_get_local_charset(0));
if (data->local_charset == NULL) {
ret = ISO_OUT_OF_MEM;
LIBISO_FREE_MEM(data);
data = NULL;
goto fs_cleanup;
}