From: Yu Watanabe Date: Sat, 26 May 2018 11:56:44 +0000 (+0900) Subject: portablectl: fix memleaks X-Git-Tag: v239~204 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d93d7d84ba5900106243693a90244bb59d93f2b;p=thirdparty%2Fsystemd.git portablectl: fix memleaks Fixes #9089. --- diff --git a/src/portable/portablectl.c b/src/portable/portablectl.c index 99690fc7681..39f273f21d8 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;