Commit 27948796 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Jean-Baptiste Kempf

ps: fix double free

(cherry picked from commit 4fc3c93cfcf10108de3d8a30081257eb8e96b1e0)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 002beebe
...@@ -648,7 +648,7 @@ static inline int ps_psm_fill( ps_psm_t *p_psm, block_t *p_pkt, ...@@ -648,7 +648,7 @@ static inline int ps_psm_fill( ps_psm_t *p_psm, block_t *p_pkt,
} }
} }
tmp_es = realloc_or_free( p_psm->es, sizeof(ps_es_t *) * (p_psm->i_es+1) ); tmp_es = realloc( p_psm->es, sizeof(ps_es_t *) * (p_psm->i_es+1) );
if( tmp_es ) if( tmp_es )
{ {
p_psm->es = tmp_es; p_psm->es = tmp_es;
......
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