[vlc-commits] ps: fix double free

Rémi Denis-Courmont git at videolan.org
Tue Aug 26 00:24:42 CEST 2014


vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 20 21:35:07 2014 +0300| [2794879650de5cb89436fea42560b2882174a7ab] | committer: Jean-Baptiste Kempf

ps: fix double free

(cherry picked from commit 4fc3c93cfcf10108de3d8a30081257eb8e96b1e0)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=2794879650de5cb89436fea42560b2882174a7ab
---

 modules/demux/ps.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/ps.h b/modules/demux/ps.h
index c36bdcd..cd7d547 100644
--- a/modules/demux/ps.h
+++ b/modules/demux/ps.h
@@ -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 )
         {
             p_psm->es = tmp_es;



More information about the vlc-commits mailing list