From 7129bb48c9e9c45c1679058d84368e69d47e153b Mon Sep 17 00:00:00 2001 From: Artem Savkov Date: Thu, 1 Aug 2019 11:59:43 +0200 Subject: [PATCH] create-diff-object: free hint variable on failure Make sure we are freeing previously allocated "hint" variable on error before exiting. Signed-off-by: Artem Savkov --- kpatch-build/create-diff-object.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c index 874d4d0..b04a0bd 100644 --- a/kpatch-build/create-diff-object.c +++ b/kpatch-build/create-diff-object.c @@ -3462,6 +3462,7 @@ int main(int argc, char *argv[]) log_debug("no changed functions were found, but callbacks exist\n"); else { log_debug("no changed functions were found\n"); + free(hint); return EXIT_STATUS_NO_CHANGE; } }