From 30347903cafa93724a94735b4f08ccba00094de2 Mon Sep 17 00:00:00 2001 From: tth Date: Sun, 23 Aug 2020 23:55:36 +0200 Subject: [PATCH] half-fixed a memory leak --- tools/mkfimg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/mkfimg.c b/tools/mkfimg.c index 33efde54..07eb6b5d 100644 --- a/tools/mkfimg.c +++ b/tools/mkfimg.c @@ -141,6 +141,8 @@ if (foo) { exit(1); } +fimg_destroy(&fimg); + return 0; } /* --------------------------------------------------------------------- */