check ptr null before free 71/214471/2 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.010740 accepted/tizen/5.5/unified/mobile/hotfix/20201027.073513 accepted/tizen/unified/20190925.230928 submit/tizen/20190925.045603 submit/tizen_5.5/20191031.000007 submit/tizen_5.5_mobile_hotfix/20201026.185107 tizen_5.5.m2_release
authorchengyj1985 <yujie.cheng@samsung.com>
Mon, 23 Sep 2019 07:22:28 +0000 (15:22 +0800)
committerchengyj1985 <yujie.cheng@samsung.com>
Wed, 25 Sep 2019 03:39:16 +0000 (11:39 +0800)
Change-Id: If981ed89f6b223ba1e5a9ce61bce934aca97fea7

libavutil/mem.c

index 15c2880..cc00374 100644 (file)
@@ -195,7 +195,8 @@ void av_free(void *ptr)
 #elif HAVE_ALIGNED_MALLOC
     _aligned_free(ptr);
 #else
-    free(ptr);
+    if (ptr)
+        free(ptr);
 #endif
 }