Commit b5040d31 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Small mem leak

parent 40350e4f
......@@ -1707,8 +1707,9 @@ static void CacheLoad( vlc_object_t *p_this )
p_this->p_libvlc->p_module_bank->i_loaded_cache = 0;
fread( &i_cache, sizeof(char), sizeof(i_cache), file );
pp_cache = p_this->p_libvlc->p_module_bank->pp_loaded_cache =
malloc( i_cache * sizeof(void *) );
if( i_cache )
pp_cache = p_this->p_libvlc->p_module_bank->pp_loaded_cache =
malloc( i_cache * sizeof(void *) );
#define LOAD_IMMEDIATE(a) \
if( fread( &a, sizeof(char), sizeof(a), file ) != sizeof(a) ) goto error
......
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