Browse Source

Closed nasty memory leak with new API call iso_image_dir_get_node().

Coverity CID 12568.
release-1.5.4.branch
Thomas Schmitt 6 years ago
parent
commit
8f76b59541
  1. 6
      libisofs/node.c

6
libisofs/node.c

@ -666,10 +666,12 @@ int iso_dir_get_node_trunc(IsoDir *dir, int truncate_length,
return ISO_OUT_OF_MEM;
ret = iso_truncate_rr_name(1, truncate_length, trunc, 1);
if (ret < 0)
return ret;
goto ex;
ret = iso_dir_get_node(dir, trunc, node);
if (ret == 0)
return 2;
ret = 2;
ex:;
LIBISO_FREE_MEM(trunc);
return ret;
}

Loading…
Cancel
Save