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
7d89f7cb
Commit
7d89f7cb
authored
Jun 08, 2011
by
Etienne Buira
Committed by
Michael Niedermayer
Jun 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypto: fix potential double free
parent
1e9b3026
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
crypto.c
libavformat/crypto.c
+2
-4
No files found.
libavformat/crypto.c
View file @
7d89f7cb
...
@@ -97,8 +97,8 @@ static int crypto_open(URLContext *h, const char *uri, int flags)
...
@@ -97,8 +97,8 @@ static int crypto_open(URLContext *h, const char *uri, int flags)
return
0
;
return
0
;
err:
err:
av_free
(
c
->
key
);
av_free
p
(
c
->
key
);
av_free
(
c
->
iv
);
av_free
p
(
c
->
iv
);
return
ret
;
return
ret
;
}
}
...
@@ -157,8 +157,6 @@ static int crypto_close(URLContext *h)
...
@@ -157,8 +157,6 @@ static int crypto_close(URLContext *h)
if
(
c
->
hd
)
if
(
c
->
hd
)
ffurl_close
(
c
->
hd
);
ffurl_close
(
c
->
hd
);
av_freep
(
&
c
->
aes
);
av_freep
(
&
c
->
aes
);
av_freep
(
&
c
->
key
);
av_freep
(
&
c
->
iv
);
return
0
;
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