projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f89288f
)
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
author
chengyj1985
<yujie.cheng@samsung.com>
Mon, 23 Sep 2019 07:22:28 +0000
(15:22 +0800)
committer
chengyj1985
<yujie.cheng@samsung.com>
Wed, 25 Sep 2019 03:39:16 +0000
(11:39 +0800)
Change-Id: If981ed89f6b223ba1e5a9ce61bce934aca97fea7
libavutil/mem.c
patch
|
blob
|
history
diff --git
a/libavutil/mem.c
b/libavutil/mem.c
index
15c2880
..
cc00374
100644
(file)
--- a/
libavutil/mem.c
+++ b/
libavutil/mem.c
@@
-195,7
+195,8
@@
void av_free(void *ptr)
#elif HAVE_ALIGNED_MALLOC
_aligned_free(ptr);
#else
- free(ptr);
+ if (ptr)
+ free(ptr);
#endif
}