crypto: Use av_freep instead of av_free

This fixes a potential double free.

Signed-off-by: Martin Storsjö <martin@martin.st>
pull/2/head
Etienne Buira 14 years ago committed by Martin Storsjö
parent dbaba52ed2
commit a71bcd1a7f
  1. 4
      libavformat/crypto.c

@ -97,8 +97,8 @@ static int crypto_open(URLContext *h, const char *uri, int flags)
return 0;
err:
av_free(c->key);
av_free(c->iv);
av_freep(&c->key);
av_freep(&c->iv);
return ret;
}

Loading…
Cancel
Save