Browse Source

Bug fix: Freeing wrong pointer in case of memory shortage. Coverty CID 12600.

release-1.5.4.branch
Thomas Schmitt 6 years ago
parent
commit
06ea46c8d5
  1. 2
      libisofs/fs_image.c

2
libisofs/fs_image.c

@ -5290,7 +5290,7 @@ int iso_report_help(char **doc, char ***result, int *line_count, int flag)
return ISO_OUT_OF_MEM;
buf = calloc(1, count);
if (buf == NULL) {
free(result);
free(*result);
*result = NULL;
return ISO_OUT_OF_MEM;
}

Loading…
Cancel
Save