diff --git a/criu/config.c b/criu/config.c index 33f2820a18..4a83384233 100644 --- a/criu/config.c +++ b/criu/config.c @@ -549,7 +549,7 @@ static size_t parse_size(char *optarg) static int parse_join_ns(const char *ptr) { char *aux, *ns_file, *extra_opts = NULL; - char *ns; + cleanup_free char *ns = NULL; ns = xstrdup(ptr); if (ns == NULL)