Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
apteryx_path_to_node will duplicate the value, so setting the input
leaf value to NULL causes it to leak.
  • Loading branch information
blairsteven authored and carlgsmith committed Dec 1, 2024
1 parent 073c43d commit 41a68de
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion syncer.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ sync_tree_process (GNode *node, gpointer arg)
if (ts && ts > params->ts)
{
apteryx_path_to_node (params->root, path, node->data ?: "");
node->data = NULL;
}
}
g_free (path);
Expand Down

0 comments on commit 41a68de

Please sign in to comment.