This fixes a potential double free.
Unified · Split
| @@ -97,8 +97,8 @@ static int crypto_open(URLContext *h, const char *uri, int flags) · 96 unmodified lines | ||
| 97 | 97 | |
| 98 | 98 | return 0; |
| 99 | 99 | err: |
| 100 | − av_free(c->key); | |
| 101 | − av_free(c->iv); | |
| 100 | + av_freep(&c->key); | |
| 101 | + av_freep(&c->iv); | |
| 102 | 102 | return ret; |
| 103 | 103 | } |
| 104 | 104 | |