comparison stream/stream_bd.c @ 31907:8df8d8fbadf1

Fix a memleak.
author reimar
date Sat, 21 Aug 2010 09:19:12 +0000
parents 0a895a0ce15a
children b1ba93bcedb1
comparison
equal deleted inserted replaced
31906:0a895a0ce15a 31907:8df8d8fbadf1
231 if (!find_vuk(bd, discid)) { 231 if (!find_vuk(bd, discid)) {
232 mp_msg(MSGT_OPEN, MSGL_ERR, 232 mp_msg(MSGT_OPEN, MSGL_ERR,
233 "No Volume Unique Key (VUK) found for this Disc: "); 233 "No Volume Unique Key (VUK) found for this Disc: ");
234 for (j = 0; j < 20; j++) mp_msg(MSGT_OPEN, MSGL_ERR, "%02x", discid[j]); 234 for (j = 0; j < 20; j++) mp_msg(MSGT_OPEN, MSGL_ERR, "%02x", discid[j]);
235 mp_msg(MSGT_OPEN, MSGL_ERR, "\n"); 235 mp_msg(MSGT_OPEN, MSGL_ERR, "\n");
236 av_free(buf);
236 return 0; 237 return 0;
237 } 238 }
238 239
239 pos = AV_RB32(buf); 240 pos = AV_RB32(buf);
240 if (pos < file_size) { 241 if (pos < file_size) {