mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-10 05:18:30 +03:00
Fix read_proc_cmdline_key ("ot-composefs") memory leak
Make it an autofree_char rather than a char
This commit is contained in:
parent
aa72caffb5
commit
adf60e26ce
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user