fiasco: Fix possible memory leak

This commit is contained in:
Pali Rohár committed 2014-11-18 20:31:16 +01:00
1 parent 8c788bad62
commit e443393aa5
1 file changed
+1
+1
View File
@@ -551,6 +551,7 @@ int fiasco_unpack(struct fiasco * fiasco, const char * dir) {
fd = open(layout_name, O_RDWR|O_CREAT|O_TRUNC, 0644); fd = open(layout_name, O_RDWR|O_CREAT|O_TRUNC, 0644);
if ( fd < 0 ) { if ( fd < 0 ) {
ERROR_INFO("Cannot create layout file %s", layout_name); ERROR_INFO("Cannot create layout file %s", layout_name);
free(layout_name);
return -1; return -1;
} }