Fix read_proc_cmdline_key ("ot-composefs") memory leak

Make it an autofree_char rather than a char
This commit is contained in:
Eric Curtin 2023-06-08 14:10:16 +01:00
parent aa72caffb5
commit adf60e26ce

View File

@ -246,7 +246,7 @@ main (int argc, char *argv[])
}
OstreeComposefsMode composefs_mode = OSTREE_COMPOSEFS_MODE_MAYBE;
char *ot_composefs = read_proc_cmdline_key ("ot-composefs");
autofree char *ot_composefs = read_proc_cmdline_key ("ot-composefs");
char *composefs_digest = NULL;
if (ot_composefs)
{