# HG changeset patch # User reimar # Date 1141815016 0 # Node ID c7b1b78f14bdcafb3d72eb7f2f3a456c7cff0a94 # Parent 61227210498ec6589744ee231ecb568a4d6086ef free tmp earlier, it is not needed below and might leak on errors otherwise diff -r 61227210498e -r c7b1b78f14bd libmpcodecs/vd_lzo.c --- 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,