Commit e23256db authored by Matthew Whitworth's avatar Matthew Whitworth Committed by Rémi Denis-Courmont

vlmshell: Free dynamically allocated ptr array

Fixes #19808. The array of child pointers in the message structure is
dynamically allocated, so this needs to be free'd when we destroy show2
after reparenting its children
Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <>
parent c6cdb9ec
......@@ -1535,6 +1535,7 @@ static vlm_message_t *vlm_Show( vlm_t *vlm, vlm_media_sys_t *media,
/* We must destroy the parent node "show" of show2
* and not the children */
free( show2->child );
free( show2->psz_name );
free( show2 );
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