This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
Avoid pointless check before calling free
Signed-off-by: Mans Rullgard <mans@mansr.com>
tags/n0.8
Clément Bœsch
Mans Rullgard
14 years ago
parent
62ecd3635a
commit
dc75d6dbf2
1 changed files
with
2 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-3
libavutil/mem.c
+ 2
- 3
libavutil/mem.c
View File
@@ -138,12 +138,11 @@ void *av_realloc(void *ptr, FF_INTERNAL_MEM_TYPE size)
void av_free(void *ptr)
{
/* XXX: this test should not be needed on most libcs */
if (ptr)
#if CONFIG_MEMALIGN_HACK
if (ptr)
free((char*)ptr - ((char*)ptr)[-1]);
#else
free(ptr);
free(ptr);
#endif
}
Write
Preview
Loading…
Cancel
Save