|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67138 Memory leak with custom directories
Submitted: 2014-04-28 03:17 UTC Modified: 2014-04-28 14:16 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: anthon at piwik dot org Assigned: ohill (profile)
Status: Closed Package: geoip (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2014-04-28 03:17 UTC] anthon at piwik dot org
GeoIPDBFileName is an array of pointers to malloc'd strings.  A single free() won't free it all.

Instead of:

if (GeoIPDBFileName != NULL) {
    GeoIPDBFileName = NULL;




Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-04-28 14:15 UTC]
Automatic comment from SVN on behalf of ohill
Log: Bug #67138
 [2014-04-28 14:16 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: ohill
 [2014-04-28 14:16 UTC]
Fixed on SVN. Thanks for the info anthon.

I have used cleanup for C lib > 1.4.7 and manually freed the array for other versions. Please try and let me know.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Jul 09 09:01:25 2020 UTC