Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
dav1d
Commits
d30b9339
Verified
Commit
d30b9339
authored
Sep 25, 2018
by
James Almer
Browse files
Use aligned free() in dav1d_open() error code path
These were all allocated with aligned malloc().
parent
0cf63fb7
Pipeline
#391
passed with stage
in 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/lib.c
View file @
d30b9339
...
...
@@ -136,10 +136,10 @@ error:
if
(
c
->
fc
)
{
for
(
int
n
=
0
;
n
<
c
->
n_fc
;
n
++
)
if
(
c
->
fc
[
n
].
tc
)
free
(
c
->
fc
[
n
].
tc
);
free
(
c
->
fc
);
dav1d_free_aligned
(
c
->
fc
[
n
].
tc
);
dav1d_free_aligned
(
c
->
fc
);
}
free
(
c
);
dav1d_freep_aligned
(
c_out
);
}
fprintf
(
stderr
,
"Failed to allocate memory: %s
\n
"
,
strerror
(
errno
));
return
-
ENOMEM
;
...
...
Write
Preview
Supports
Markdown
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