Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
external
ffmpeg
Commits
dc75d6db
Commit
dc75d6db
authored
Feb 03, 2011
by
Clément Bœsch
Committed by
Mans Rullgard
Feb 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid pointless check before calling free
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
62ecd363
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
libavutil/mem.c
libavutil/mem.c
+2
-3
No files found.
libavutil/mem.c
View file @
dc75d6db
...
...
@@ -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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment