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
15876331
Commit
15876331
authored
Nov 16, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/frei0r: in init() check path loop, free resources in a single point
parent
6c7ae493
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
vf_frei0r.c
libavfilter/vf_frei0r.c
+8
-6
No files found.
libavfilter/vf_frei0r.c
View file @
15876331
...
...
@@ -237,19 +237,21 @@ static av_cold int frei0r_init(AVFilterContext *ctx,
/* add additional trailing slash in case it is missing */
char
*
p1
=
av_asprintf
(
"%s/"
,
p
);
if
(
!
p1
)
{
av_free
(
path
);
return
AVERROR
(
ENOMEM
)
;
ret
=
AVERROR
(
ENOMEM
);
goto
check_path_end
;
}
ret
=
load_path
(
ctx
,
&
frei0r
->
dl_handle
,
p1
,
dl_name
);
av_free
(
p1
);
if
(
ret
<
0
)
{
av_free
(
path
);
return
ret
;
}
if
(
ret
<
0
)
goto
check_path_end
;
if
(
frei0r
->
dl_handle
)
break
;
}
check_path_end:
av_free
(
path
);
if
(
ret
<
0
)
return
ret
;
}
if
(
!
frei0r
->
dl_handle
&&
(
path
=
getenv
(
"HOME"
)))
{
char
*
prefix
=
av_asprintf
(
"%s/.frei0r-1/lib/"
,
path
);
...
...
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