summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorgpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-04-23 15:14:03 +0000
committergpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-04-23 15:14:03 +0000
commit152d7ed02c15a8ea5685b155fc175837d1b7a5e6 (patch)
tree7d8e0166b99996efa97b45e816ebccddb0d3b263 /libmpdemux
parentbafd517f81dffa00cd03775758d74ee4be36f78d (diff)
downloadmpv-152d7ed02c15a8ea5685b155fc175837d1b7a5e6.tar.bz2
mpv-152d7ed02c15a8ea5685b155fc175837d1b7a5e6.tar.xz
resource leak fix.
detected by Covertity's checker: CID: 154 Checker: RESOURCE_LEAK Description: Returned without freeing storage "cddb_info" git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18226 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/cdda.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmpdemux/cdda.c b/libmpdemux/cdda.c
index 8d082adf36..a6f5d3c43f 100644
--- a/libmpdemux/cdda.c
+++ b/libmpdemux/cdda.c
@@ -151,6 +151,7 @@ static int open_cdda(stream_t *st,int m, void* opts, int* file_format) {
if(!cdd) {
mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_MPDEMUX_CDDA_CantOpenCDDADevice);
m_struct_free(&stream_opts,opts);
+ free(cddb_info);
return STREAM_ERROR;
}
@@ -167,6 +168,7 @@ static int open_cdda(stream_t *st,int m, void* opts, int* file_format) {
mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_MPDEMUX_CDDA_CantOpenDisc);
cdda_close(cdd);
m_struct_free(&stream_opts,opts);
+ free(cddb_info);
return STREAM_ERROR;
}
@@ -222,6 +224,7 @@ static int open_cdda(stream_t *st,int m, void* opts, int* file_format) {
free(priv);
cd_info_free(cd_info);
m_struct_free(&stream_opts,opts);
+ free(cddb_info);
return STREAM_ERROR;
}