mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-09-09 07:16:11 -04:00
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:
parent
83ae5cc252
commit
33a3a7970e
12
main.c
12
main.c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user