Skip to content

Commit

Permalink
Merge pull request #412 from giuseppe/fix-variable-leak
Browse files Browse the repository at this point in the history
main: automatically cleanup newpath
  • Loading branch information
giuseppe committed Feb 6, 2024
2 parents 18f4d67 + c08211d commit c2dd76c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ());
Expand Down

0 comments on commit c2dd76c

Please sign in to comment.