From: Johannes Schlüter Date: Mon, 16 May 2011 19:46:32 +0000 (+0000) Subject: - Fix possible memory leak X-Git-Tag: php-5.5.0alpha1~2089 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb5faa6eca93048b1c7505f63173aa79ae5dc7dc;p=php - Fix possible memory leak # Found by parfait - http://labs.oracle.com/projects/parfait/ --- diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index d533245c61..b88bae90a8 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -1067,6 +1067,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i } if (is_dir && !directory) { /* not a directory */ + tsrm_free_alloca(tmp, use_heap); return -1; } }