summaryrefslogtreecommitdiffstats
path: root/src/fiasco.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fiasco.c')
-rw-r--r--src/fiasco.c1
1 files changed, 1 insertions, 0 deletions
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;
}