mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-08-03 09:55:57 -04:00
Merge pull request #412 from giuseppe/fix-variable-leak
main: automatically cleanup newpath
This commit is contained in:
commit
c2dd76c6d7
2
main.c
2
main.c
@ -1092,7 +1092,7 @@ direct_renameat2 (int olddirfd, const char *oldpath,
|
||||
static int
|
||||
hide_node (struct ovl_data *lo, struct ovl_node *node, bool unlink_src)
|
||||
{
|
||||
char *newpath = NULL;
|
||||
cleanup_free char *newpath = NULL;
|
||||
int ret;
|
||||
|
||||
ret = asprintf (&newpath, "%lu", get_next_wd_counter ());
|
||||
|
Loading…
x
Reference in New Issue
Block a user