main: avoid double free on cleanup

the cleanup_node_init label already takes care of it.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2020-04-30 11:01:12 +02:00
parent 83ae5cc252
commit 33a3a7970e
No known key found for this signature in database
GPG Key ID: E4730F97F60286ED

12
main.c
View File

@ -1097,19 +1097,13 @@ make_whiteout_node (const char *path, const char *name)
new_name = strdup (name);
if (new_name == NULL)
{
free (ret);
return NULL;
}
return NULL;
node_set_name (ret, new_name);
ret->path = strdup (path);
if (ret->path == NULL)
{
free (new_name);
free (ret);
return NULL;
}
return NULL;
ret->whiteout = 1;
ret->ino = &dummy_ino;