Browse Source

Closed memory leak with lack of memory during character set conversion.

Coverity CID 12566.
release-1.5.4.branch
Thomas Schmitt 6 years ago
parent
commit
d8fb8b26a6
  1. 1
      libisofs/util.c

1
libisofs/util.c

@ -436,6 +436,7 @@ int str2ascii(const char *icharset, const char *input, char **output)
ret_ = malloc(numchars + 1);
if (ret_ == NULL) {
free(wsrc_);
return ISO_OUT_OF_MEM;
}
outbytes = numchars;

Loading…
Cancel
Save