From e443393aa52ed662b594284d9d053299dace58fb Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Tue, 18 Nov 2014 20:31:16 +0100 Subject: fiasco: Fix possible memory leak --- src/fiasco.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/fiasco.c') diff --git a/src/fiasco.c b/src/fiasco.c index 06c8312..a2cd55a 100644 --- a/src/fiasco.c +++ b/src/fiasco.c @@ -551,6 +551,7 @@ int fiasco_unpack(struct fiasco * fiasco, const char * dir) { fd = open(layout_name, O_RDWR|O_CREAT|O_TRUNC, 0644); if ( fd < 0 ) { ERROR_INFO("Cannot create layout file %s", layout_name); + free(layout_name); return -1; } -- cgit v1.2.3