diff options
author | Thibaut Mattern <tmattern@users.sourceforge.net> | 2006-03-16 22:17:16 +0000 |
---|---|---|
committer | Thibaut Mattern <tmattern@users.sourceforge.net> | 2006-03-16 22:17:16 +0000 |
commit | 37ee50c967505b7b688e982b10bf25fb2f7779fb (patch) | |
tree | 20a935fce2486edf65fccea4e5fd9b4a3a583c82 | |
parent | d2ffa294d4352bab94a62f4032a38cf548baa155 (diff) | |
download | xine-lib-37ee50c967505b7b688e982b10bf25fb2f7779fb.tar.gz xine-lib-37ee50c967505b7b688e982b10bf25fb2f7779fb.tar.bz2 |
[coverity]
CID: 176
Checker: RESOURCE_LEAK (help)
File: xine-lib/src/input/input_file.c
Function: file_class_get_dir
Description: Returned without freeing storage "hide_files"
CID: 176
Checker: RESOURCE_LEAK (help)
File: xine-lib/src/input/input_file.c
Function: file_class_get_dir
Description: Returned without freeing storage "dir_files"
CID: 176
Checker: RESOURCE_LEAK (help)
File: xine-lib/src/input/input_file.c
Function: file_class_get_dir
Description: Returned without freeing storage "norm_files"
CVS patchset: 7932
CVS date: 2006/03/16 22:17:16
-rw-r--r-- | src/input/input_file.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/input/input_file.c b/src/input/input_file.c index 84e6e377b..144f00c45 100644 --- a/src/input/input_file.c +++ b/src/input/input_file.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: input_file.c,v 1.106 2006/03/16 10:52:32 hadess Exp $ + * $Id: input_file.c,v 1.107 2006/03/16 22:17:16 tmattern Exp $ */ #ifdef HAVE_CONFIG_H @@ -812,8 +812,12 @@ static xine_mrl_t **file_class_get_dir (input_class_t *this_gen, free(norm_files); } - else + else { + free(hide_files); + free(dir_files); + free(norm_files); return NULL; + } /* * Inform caller about files found number. |