]> granicus.if.org Git - php/commitdiff
fix leak
authorAntony Dovgal <tony2001@php.net>
Sun, 29 Aug 2004 06:10:47 +0000 (06:10 +0000)
committerAntony Dovgal <tony2001@php.net>
Sun, 29 Aug 2004 06:10:47 +0000 (06:10 +0000)
ext/pdo/pdo_dbh.c

index fdccf05db5685372628775da8f281fc61a82d927..23503a7303a5db5eba96b257ced4c4a8d59506cc 100755 (executable)
@@ -666,6 +666,10 @@ static void pdo_dbh_free_storage(zend_object *object TSRMLS_DC)
        }
        if(dbh->properties) {
                zend_hash_destroy(dbh->properties);
+               /* XXX: this should be probably changed to pefree() when persistent
+                * connections will be properly implemented
+                * */
+               efree(dbh->properties); 
        }
        if (dbh->methods) {
                dbh->methods->closer(dbh TSRMLS_CC);