1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-25 06:03:40 +03:00

portablectl: fix memleaks

Fixes #9089.
This commit is contained in:
Yu Watanabe 2018-05-26 20:56:44 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent c5a935b018
commit 8d93d7d84b

View File

@ -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;