Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Yushin Cho
aom-rav1e
Commits
b933205a
Commit
b933205a
authored
Apr 23, 2014
by
Adrian Grange
Committed by
Gerrit Code Review
Apr 24, 2014
Browse files
Remove test against NULL before freeing memory
Change-Id: I6ce6395b74019345c8b7242d874761f981ad53af
parent
1aa2d1a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
vpx_scale/generic/yv12config.c
View file @
b933205a
...
...
@@ -183,8 +183,7 @@ int vp9_realloc_frame_buffer(YV12_BUFFER_CONFIG *ybf,
ybf
->
buffer_alloc
=
(
uint8_t
*
)
yv12_align_addr
(
fb
->
data
,
32
);
}
else
if
(
frame_size
>
ybf
->
buffer_alloc_sz
)
{
// Allocation to hold larger frame, or first allocation.
if
(
ybf
->
buffer_alloc
)
vpx_free
(
ybf
->
buffer_alloc
);
vpx_free
(
ybf
->
buffer_alloc
);
ybf
->
buffer_alloc
=
(
uint8_t
*
)
vpx_memalign
(
32
,
frame_size
);
if
(
!
ybf
->
buffer_alloc
)
return
-
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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