From c71ae745ef3087424e1f9bc4884ae344b98b91c9 Mon Sep 17 00:00:00 2001 From: peter15914 <48548636+peter15914@users.noreply.github.com> Date: Sun, 5 Jan 2025 02:50:20 +0500 Subject: [PATCH] fix possible memory leak --- src/clib-uninstall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clib-uninstall.c b/src/clib-uninstall.c index 7dcebece..3e2d6c63 100644 --- a/src/clib-uninstall.c +++ b/src/clib-uninstall.c @@ -128,7 +128,7 @@ static char *get_uninstall_target(const char *name, const char *version) { size = asprintf(&target, "cd %s && %s", dir, val); if (-1 == size) - return NULL; + target = NULL; done: if (root)