From 8d93d7d84ba5900106243693a90244bb59d93f2b Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 26 May 2018 20:56:44 +0900 Subject: [PATCH] portablectl: fix memleaks Fixes #9089. --- src/portable/portablectl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/portable/portablectl.c b/src/portable/portablectl.c index 99690fc768..39f273f21d 100644 --- a/src/portable/portablectl.c +++ b/src/portable/portablectl.c @@ -272,7 +272,7 @@ static int inspect_image(int argc, char *argv[], void *userdata) { fflush(stdout); nl = true; } else { - const char *pretty_portable = NULL, *pretty_os = NULL; + _cleanup_free_ char *pretty_portable = NULL, *pretty_os = NULL; _cleanup_fclose_ FILE *f; -- 2.25.1