From: Ilia Alshanetsky Date: Thu, 7 Jul 2005 16:27:46 +0000 (+0000) Subject: Fixed memory leak X-Git-Tag: php-5.1.0b3~116 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22896664a8ea407d3ca9280e444f9fbddadaedc6;p=php Fixed memory leak --- diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c index 3779d3d514..c73f4d2939 100755 --- a/ext/pdo_mysql/mysql_driver.c +++ b/ext/pdo_mysql/mysql_driver.c @@ -194,6 +194,9 @@ static int mysql_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, } return 0; } + if (nsql) { + efree(nsql); + } S->num_params = mysql_stmt_param_count(S->stmt);