Mercurial > mplayer.hg
changeset 17768:c7b1b78f14bd
free tmp earlier, it is not needed below and might leak on errors otherwise
author | reimar |
---|---|
date | Wed, 08 Mar 2006 10:50:16 +0000 |
parents | 61227210498e |
children | 7b7681cf5530 |
files | libmpcodecs/vd_lzo.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_lzo.c Wed Mar 08 10:24:07 2006 +0000 +++ b/libmpcodecs/vd_lzo.c Wed Mar 08 10:50:16 2006 +0000 @@ -120,6 +120,7 @@ /* decompress the frame */ r = lzo1x_decompress (data, len, tmp, &w, priv->wrkmem); + free(tmp); if (r != LZO_E_OK) { /* this should NEVER happen */ @@ -142,7 +143,6 @@ if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,priv->codec)) return NULL; init_done++; - free(tmp); } mpi = mpcodecs_get_image(sh, MP_IMGTYPE_TEMP, 0,