modules/control/hotkeys.c:975: Memory leak: psz_bookmark
In file modules/control/hotkeys.c:975 Variable psz_bookmark allocates memory with strdup() and it seems to be leaking memory. I don't see that it would be released anywhere.
char *psz_bookmark = strdup( val.psz_string );
PL_LOCK;
FOREACH_ARRAY( playlist_item_t *p_item, p_playlist->items )
char *psz_uri = input_item_GetURI( p_item->p_input );
if( !strcmp( psz_bookmark, psz_uri ) )
{
free( psz_uri );
playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, pl_Locked,
NULL, p_item );
break;
}
else
free( psz_uri );
FOREACH_END();
PL_UNLOCK;
vlc_object_release( p_playlist );
}
Cppcheck found this bug: http://cppcheck.wiki.sourceforge.net/