SF Bug Tracker id 3498442 - Memory leak in get_file_info

Submitted: Fabrice Fontaine ( ffontaine ) - 2012-03-07 02:44:30 PST

info->contentType is not freed before being set to NULL.
This commit is contained in:
Fabrice Fontaine 2012-03-07 12:49:13 +01:00
parent 0469388b73
commit 56c26b5199
2 changed files with 9 additions and 0 deletions

View File

@ -2,6 +2,14 @@
Version 1.6.16
*******************************************************************************
2012-03-07 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
SF Bug Tracker id 3498442 - Memory leak in get_file_info
Submitted: Fabrice Fontaine ( ffontaine ) - 2012-03-07 02:44:30 PST
info->contentType is not freed before being set to NULL.
2012-03-07 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
SF Bug Tracker id 3498439 - Memory leak in removeServiceTable

View File

@ -502,6 +502,7 @@ static int get_file_info(
FILE *fp;
int rc = 0;
ixmlFreeDOMString(info->content_type);
info->content_type = NULL;
code = stat(filename, &s);
if (code == -1)