diff options
author | Felipe Pena <felipe@php.net> | 2009-02-09 12:07:23 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2009-02-09 12:07:23 +0000 |
commit | efdaaa3f592b85daa67e46291cb89422e106bd67 (patch) | |
tree | 3bfddaaee8995789c314adedecee997d125bc870 /ext/pdo_firebird/firebird_statement.c | |
parent | fcfcacefc99b7afe8f434462363278107b6de362 (diff) | |
download | php-git-efdaaa3f592b85daa67e46291cb89422e106bd67.tar.gz |
- MFH: Fix mem. leak
Diffstat (limited to 'ext/pdo_firebird/firebird_statement.c')
-rw-r--r-- | ext/pdo_firebird/firebird_statement.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/pdo_firebird/firebird_statement.c b/ext/pdo_firebird/firebird_statement.c index 377a4c801b..ae0322780d 100644 --- a/ext/pdo_firebird/firebird_statement.c +++ b/ext/pdo_firebird/firebird_statement.c @@ -470,6 +470,9 @@ static int firebird_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_dat case PDO_PARAM_EVT_ALLOC: if (param->is_param) { /* allocate the parameter */ + if (var->sqlind) { + efree(var->sqlind); + } var->sqlind = (void*)emalloc(var->sqllen + 2*sizeof(short)); var->sqldata = &((char*)var->sqlind)[sizeof(short)]; } |