From d8fb8b26a6be7ba37013413b801ad7af01d78c3c Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 9 Oct 2015 14:14:55 +0200 Subject: [PATCH] Closed memory leak with lack of memory during character set conversion. Coverity CID 12566. --- libisofs/util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libisofs/util.c b/libisofs/util.c index 45d11a7..4701e9d 100644 --- a/libisofs/util.c +++ b/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;