From: Kalle Sommer Nielsen Date: Fri, 21 Jul 2017 20:22:41 +0000 (+0200) Subject: Free the HMODULE handle after use X-Git-Tag: php-7.3.0alpha1~1850 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d86a333a43bc16fd4a408df05e1a89fca83f4e2d;p=php Free the HMODULE handle after use --- diff --git a/ext/pdo_firebird/firebird_driver.c b/ext/pdo_firebird/firebird_driver.c index ab2571df3d..83203d7804 100644 --- a/ext/pdo_firebird/firebird_driver.c +++ b/ext/pdo_firebird/firebird_driver.c @@ -545,6 +545,9 @@ static int firebird_handle_get_attribute(pdo_dbh_t *dbh, zend_long attr, zval *v info_func(tmp); ZVAL_STRING(val, tmp); } +#ifdef PHP_WIN32 + FreeLibrary(l); +#endif #else ZVAL_NULL(val); #endif