[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190115134203.11448-1-lczerner@redhat.com>
Date: Tue, 15 Jan 2019 14:42:02 +0100
From: Lukas Czerner <lczerner@...hat.com>
To: linux-ext4@...r.kernel.org
Subject: [PATCH 1/2] e2freefrag: fix memory leak in scan_online()
Signed-off-by: Lukas Czerner <lczerner@...hat.com>
---
misc/e2freefrag.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/misc/e2freefrag.c b/misc/e2freefrag.c
index f7fede54..935ae225 100644
--- a/misc/e2freefrag.c
+++ b/misc/e2freefrag.c
@@ -236,6 +236,7 @@ static int scan_online(ext2_filsys fs, struct chunk_info *info,
fsmap_advance(fsmap);
}
+ free(fsmap);
return 1;
}
#else
--
2.20.1
Powered by blists - more mailing lists