diff options
author | Jérôme Loyet <fat@php.net> | 2010-09-14 15:33:43 +0000 |
---|---|---|
committer | Jérôme Loyet <fat@php.net> | 2010-09-14 15:33:43 +0000 |
commit | 8c1582c9add04e72d6e029702234ee89ce6ce3ba (patch) | |
tree | c64d1cff2408dc67a51c86e13fa13a078bb91651 /sapi | |
parent | 0631d2c59da73df045465dc5dd460843d4d3bcba (diff) | |
download | php-git-8c1582c9add04e72d6e029702234ee89ce6ce3ba.tar.gz |
- remove a memory leak (missing efree())
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/fpm/fpm/fpm_conf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sapi/fpm/fpm/fpm_conf.c b/sapi/fpm/fpm/fpm_conf.c index 7d25a044fa..ad7c86e9a9 100644 --- a/sapi/fpm/fpm/fpm_conf.c +++ b/sapi/fpm/fpm/fpm_conf.c @@ -716,11 +716,13 @@ static void fpm_conf_ini_parser_include(char *inc, void *arg TSRMLS_DC) /* {{{ * #ifdef GLOB_NOMATCH if (i == GLOB_NOMATCH) { zlog(ZLOG_STUFF, ZLOG_WARNING, "Nothing matches the include pattern '%s' from %s at line %d.", inc, filename, ini_lineno); + efree(filename); return; } #endif /* GLOB_NOMATCH */ zlog(ZLOG_STUFF, ZLOG_ERROR, "Unable to globalize '%s' (ret=%d) from %s at line %d.", inc, i, filename, ini_lineno); *error = 1; + efree(filename); return; } @@ -731,6 +733,7 @@ static void fpm_conf_ini_parser_include(char *inc, void *arg TSRMLS_DC) /* {{{ * if (0 > fpm_conf_load_ini_file(g.gl_pathv[i] TSRMLS_CC)) { zlog(ZLOG_STUFF, ZLOG_ERROR, "Unable to include %s from %s at line %d", g.gl_pathv[i], filename, ini_lineno); *error = 1; + efree(filename); return; } } @@ -740,9 +743,12 @@ static void fpm_conf_ini_parser_include(char *inc, void *arg TSRMLS_DC) /* {{{ * if (0 > fpm_conf_load_ini_file(inc TSRMLS_CC)) { zlog(ZLOG_STUFF, ZLOG_ERROR, "Unable to include %s from %s at line %d", inc, filename, ini_lineno); *error = 1; + efree(filename); return; } #endif /* HAVE_GLOB */ + + efree(filename); } /* }}} */ |