diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2005-07-07 16:27:46 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2005-07-07 16:27:46 +0000 |
| commit | 22896664a8ea407d3ca9280e444f9fbddadaedc6 (patch) | |
| tree | cdfe77a67571f2e08299ed2265618a3168d00829 /ext/pdo_mysql/mysql_driver.c | |
| parent | 294a44a9cb9a7c91c2798b7117209da0654a1b1c (diff) | |
| download | php-git-22896664a8ea407d3ca9280e444f9fbddadaedc6.tar.gz | |
Fixed memory leak
Diffstat (limited to 'ext/pdo_mysql/mysql_driver.c')
| -rwxr-xr-x | ext/pdo_mysql/mysql_driver.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |
