X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=ogg_afh.c;h=60af9922f45b836065d66be73e130e653705ef6b;hb=f63aa66c5655ca9f9a881c0988c90ed135515c19;hp=a9b07a3c676515f610dc678ad06aa5cfcbb06435;hpb=471684761a2039bbc89aa1e3c33c62de6bef86cf;p=paraslash.git diff --git a/ogg_afh.c b/ogg_afh.c index a9b07a3c..60af9922 100644 --- a/ogg_afh.c +++ b/ogg_afh.c @@ -131,8 +131,11 @@ static int ogg_compute_header_len(char *map, size_t numbytes, memcpy(buf, map, len); ogg_sync_wrote(sync_in, (long)len); ret = -E_SYNC_PAGEOUT; - if (ogg_sync_pageout(sync_in, &page) <= 0) + if (ogg_sync_pageout(sync_in, &page) <= 0) { + free(stream_in); + free(stream_out); goto err1; + } serial = ogg_page_serialno(&page); ogg_stream_init(stream_in, serial); ogg_stream_init(stream_out, serial);