mirror of
https://github.com/systemd/systemd.git
synced 2025-01-06 17:18:12 +03:00
nspawn: fix memleak
CID #1368262: fn is allocated with new, so it should be freed.
This commit is contained in:
parent
402a81c774
commit
e0489532fd
@ -3470,8 +3470,8 @@ static int run(int master,
|
||||
}
|
||||
|
||||
static int load_root_hash(const char *image) {
|
||||
_cleanup_free_ char *text = NULL;
|
||||
char *fn, *n, *e;
|
||||
_cleanup_free_ char *text = NULL, *fn = NULL;
|
||||
char *n, *e;
|
||||
void *k;
|
||||
size_t l;
|
||||
int r;
|
||||
|
Loading…
Reference in New Issue
Block a user