Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
d0812f91
Commit
d0812f91
authored
Oct 19, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/exr: favor av_freep() over av_free() for saftey
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
6838e1f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
exr.c
libavcodec/exr.c
+5
-5
No files found.
libavcodec/exr.c
View file @
d0812f91
...
@@ -563,7 +563,7 @@ static int huf_uncompress(GetByteContext *gb,
...
@@ -563,7 +563,7 @@ static int huf_uncompress(GetByteContext *gb,
fail:
fail:
for
(
i
=
0
;
i
<
HUF_DECSIZE
;
i
++
)
{
for
(
i
=
0
;
i
<
HUF_DECSIZE
;
i
++
)
{
if
(
hdec
[
i
].
p
)
if
(
hdec
[
i
].
p
)
av_free
(
hdec
[
i
].
p
);
av_free
p
(
&
hdec
[
i
].
p
);
}
}
av_free
(
freq
);
av_free
(
freq
);
...
@@ -1256,10 +1256,10 @@ static av_cold int decode_end(AVCodecContext *avctx)
...
@@ -1256,10 +1256,10 @@ static av_cold int decode_end(AVCodecContext *avctx)
for
(
i
=
0
;
i
<
s
->
thread_data_size
/
sizeof
(
EXRThreadData
);
i
++
)
{
for
(
i
=
0
;
i
<
s
->
thread_data_size
/
sizeof
(
EXRThreadData
);
i
++
)
{
EXRThreadData
*
td
=
&
s
->
thread_data
[
i
];
EXRThreadData
*
td
=
&
s
->
thread_data
[
i
];
av_free
(
td
->
uncompressed_data
);
av_free
p
(
&
td
->
uncompressed_data
);
av_free
(
td
->
tmp
);
av_free
p
(
&
td
->
tmp
);
av_free
(
td
->
bitmap
);
av_free
p
(
&
td
->
bitmap
);
av_free
(
td
->
lut
);
av_free
p
(
&
td
->
lut
);
}
}
av_freep
(
&
s
->
thread_data
);
av_freep
(
&
s
->
thread_data
);
...
...
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