Mercurial > mplayer.hg
changeset 18225:1e1398e6bdf9
resource leak fix.
detected by
Covertity's checker:
CID: 154
Checker: RESOURCE_LEAK
Description: Returned without freeing storage "cddb_info"
author | gpoirier |
---|---|
date | Sun, 23 Apr 2006 15:14:03 +0000 |
parents | c4e25e4d7117 |
children | fcf90803a951 |
files | libmpdemux/cdda.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/cdda.c Sun Apr 23 14:58:14 2006 +0000 +++ b/libmpdemux/cdda.c Sun Apr 23 15:14:03 2006 +0000 @@ -151,6 +151,7 @@ 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 @@ 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 @@ free(priv); cd_info_free(cd_info); m_struct_free(&stream_opts,opts); + free(cddb_info); return STREAM_ERROR; }