Commit 23111794 authored by Rémi Duraffort's avatar Rémi Duraffort

Fix memory leak (cid #1049518)

parent 95f5a5f4
......@@ -263,11 +263,16 @@ static char* recurse_answer( vlm_message_t *p_answer, const char* psz_delim,
* inside a list), create a property of its name as if it
* had a name value node
*/
free( psz_nametag );
if( i_list )
{
i_success = asprintf( &psz_nametag, "\"name\": \"%s\",%s",
aw_child->psz_name, psz_childdelim );
if( i_success == -1 ) break;
if( i_success == -1 )
{
psz_nametag = NULL;
break;
}
}
else
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment