Skip to content

Commit

Permalink
Fix memory leak in get_tree
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Parlane <[email protected]>
  • Loading branch information
carlgsmith authored and sparlane committed Jul 17, 2015
1 parent a64d983 commit 5d4086a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apteryx.c
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ _get_traverse (GNode* node, const char *path, int depth)
/* Value or children */
if (children == NULL && value)
{
APTERYX_LEAF (node, strdup (key), strdup ((char*)value));
APTERYX_LEAF (node, strdup (key), value);
}
else if (children)
{
Expand Down

0 comments on commit 5d4086a

Please sign in to comment.