From 3b95f4c4c440c16fc96b24b717d7933fe2d726c2 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 10 Jun 2012 12:52:34 +0200 Subject: [PATCH] Closed a small memory leak found by valgrind --- libisofs/ecma119.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libisofs/ecma119.c b/libisofs/ecma119.c index 9a6754f..2dc758f 100644 --- a/libisofs/ecma119.c +++ b/libisofs/ecma119.c @@ -1347,6 +1347,8 @@ int write_head_part2(Ecma119Image *target, int *write_count, int flag) ret = ISO_SUCCESS; ex:; + if (buf != NULL) + free(buf); return ret; }