Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
eaa8c1f9
Commit
eaa8c1f9
authored
Nov 08, 2011
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypto: Don't manually free memory allocated via AVOptions
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
d10361b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
crypto.c
libavformat/crypto.c
+1
-6
No files found.
libavformat/crypto.c
View file @
eaa8c1f9
...
...
@@ -61,7 +61,7 @@ static const AVClass crypto_class = {
static
int
crypto_open
(
URLContext
*
h
,
const
char
*
uri
,
int
flags
)
{
const
char
*
nested_url
;
int
ret
;
int
ret
=
0
;
CryptoContext
*
c
=
h
->
priv_data
;
if
(
!
av_strstart
(
uri
,
"crypto+"
,
&
nested_url
)
&&
...
...
@@ -95,10 +95,7 @@ static int crypto_open(URLContext *h, const char *uri, int flags)
h
->
is_streamed
=
1
;
return
0
;
err:
av_freep
(
&
c
->
key
);
av_freep
(
&
c
->
iv
);
return
ret
;
}
...
...
@@ -157,8 +154,6 @@ static int crypto_close(URLContext *h)
if
(
c
->
hd
)
ffurl_close
(
c
->
hd
);
av_freep
(
&
c
->
aes
);
av_freep
(
&
c
->
key
);
av_freep
(
&
c
->
iv
);
return
0
;
}
...
...
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