Drop unneeded checks before av_free() and change to av_freep() where it's more suitable.
[ffmpeg.git] / libavcodec / zmbv.c
index fd8497d..fdca4d2 100644 (file)
@@ -671,10 +671,8 @@ static int decode_end(AVCodecContext *avctx)
 #ifdef CONFIG_ZLIB
     inflateEnd(&(c->zstream));
 #endif
-    if(c->cur)
-        av_freep(&c->cur);
-    if(c->prev)
-        av_freep(&c->prev);
+    av_freep(&c->cur);
+    av_freep(&c->prev);
 
     return 0;
 }