History

Revert "crypto: fix potential double free"

This reverts commit 7d89f7cbf3ccd98f9a5f58db97effa9afd2d571a. Revert at authors request, and its buggy missing &

Michael Niedermayer committed 15 years ago

Commit c1ad93c1 parent 1fe3bf31 file · +4 −2Browse files

Unified · Split

libavformat/crypto.c+4−2
@@ -97,8 +97,8 @@ static int crypto_open(URLContext *h, const char *uri, int flags) · 96 unmodified lines
97 97
98 return 0;98 return 0;
99err:99err:
100 av_freep(c->key);100 av_free(c->key);
101 av_freep(c->iv);101 av_free(c->iv);
102 return ret;102 return ret;
103}103}
104 104
@@ -157,6 +157,8 @@ static int crypto_close(URLContext *h) · 52 unmodified lines
157 if (c->hd)157 if (c->hd)
158 ffurl_close(c->hd);158 ffurl_close(c->hd);
159 av_freep(&c->aes);159 av_freep(&c->aes);
160 av_freep(&c->key);
161 av_freep(&c->iv);
160 return 0;162 return 0;
161}163}
162 164

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t