Browse Source

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

Coverity CID 12565.
release-1.5.4.branch
Thomas Schmitt 6 years ago
parent
commit
b9ccdeda72
  1. 2
      libisofs/fs_image.c

2
libisofs/fs_image.c

@ -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;
}

Loading…
Cancel
Save