matroskadec: fix potential mem leak

may or may not fix CID134 and CID135

Originally committed as revision 13636 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Aurelien Jacobs 17 years ago
parent 34ae40971b
commit ff2c222c37
  1. 1
      libavformat/matroskadec.c

@ -505,6 +505,7 @@ ebml_read_ascii (MatroskaDemuxContext *matroska,
offset_t pos = url_ftell(pb); offset_t pos = url_ftell(pb);
av_log(matroska->ctx, AV_LOG_ERROR, av_log(matroska->ctx, AV_LOG_ERROR,
"Read error at pos. %"PRIu64" (0x%"PRIx64")\n", pos, pos); "Read error at pos. %"PRIu64" (0x%"PRIx64")\n", pos, pos);
av_free(*str);
return AVERROR(EIO); return AVERROR(EIO);
} }
(*str)[size] = '\0'; (*str)[size] = '\0';

Loading…
Cancel
Save