mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-09-09 07:16:11 -04:00
main: automatically cleanup newpath
this was already the assumption in the source code. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
18f4d6768a
commit
c08211ddd7
2
main.c
2
main.c
@ -1092,7 +1092,7 @@ direct_renameat2 (int olddirfd, const char *oldpath,
|
|||||||
static int
|
static int
|
||||||
hide_node (struct ovl_data *lo, struct ovl_node *node, bool unlink_src)
|
hide_node (struct ovl_data *lo, struct ovl_node *node, bool unlink_src)
|
||||||
{
|
{
|
||||||
char *newpath = NULL;
|
cleanup_free char *newpath = NULL;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = asprintf (&newpath, "%lu", get_next_wd_counter ());
|
ret = asprintf (&newpath, "%lu", get_next_wd_counter ());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user