History

crypto: Use av_freep instead of av_free

This fixes a potential double free.

Etienne Buira committed 15 years ago

Commit c8d0d8b1 parent c1ad93c1 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
9797
9898 return 0;
9999 err:
100− av_free(c->key);
101− av_free(c->iv);
100+ av_freep(&c->key);
101+ av_freep(&c->iv);
102102 return ret;
103103 }
104104

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