nspawn: fix memleak

CID #1368262: fn is allocated with new, so it should be freed.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2017-01-15 16:57:57 -05:00
parent 402a81c774
commit e0489532fd
+2 -2
View File
@@ -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;