History

crypto: Use av_freep instead of av_free

This fixes a potential double free.

Etienne Buira committed 15 years ago

Commit a71bcd11 parent dbaba521 file · +2 −2Browse files

Unified · Split

libavformat/crypto.c+2−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_free(c->key);100 av_freep(&c->key);
101 av_free(c->iv);101 av_freep(&c->iv);
102 return ret;102 return ret;
103}103}
104 104

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