Commit 5ed43da6 authored by conrad's avatar conrad

Mozilla #559338: auto_dirac leaks info when dirac_parse_info fails

Patch by timeless
parent 1b1b6f3f
......@@ -371,8 +371,10 @@ auto_dirac (OGGZ * oggz, long serialno, unsigned char * data, long length, void
info = oggz_malloc(sizeof(dirac_info));
if (info == NULL) return -1;
if (dirac_parse_info(info, data, length) == -1)
if (dirac_parse_info(info, data, length) == -1) {
oggz_free (info);
return -1;
/* the granulerate is twice the frame rate (in order to handle interlace) */
oggz_set_granulerate (oggz, serialno,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment