rtmpproto: free hmac context properly
authorJames Almer <jamrial@gmail.com>
Thu, 30 Jul 2015 03:00:01 +0000 (00:00 -0300)
committerMartin Storsjö <martin@martin.st>
Thu, 30 Jul 2015 06:26:49 +0000 (09:26 +0300)
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtmpproto.c

index 1db7495..ec4b0e7 100644 (file)
@@ -971,7 +971,7 @@ int ff_rtmp_calc_digest(const uint8_t *src, int len, int gap,
     }
     av_hmac_final(hmac, dst, 32);
 
-    av_free(hmac);
+    av_hmac_free(hmac);
 
     return 0;
 }