From: George Schlossnagle Date: Tue, 18 May 2004 20:33:30 +0000 (+0000) Subject: was leaking query_string's X-Git-Tag: RELEASE_0_1~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8233053d246aa600bda15786c86d304556c24c89;p=php was leaking query_string's --- diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 5bcb963ed1..02786ac1d7 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -670,7 +670,9 @@ void pdo_dbstmt_free_storage(zend_object *object TSRMLS_DC) if (stmt->methods && stmt->methods->dtor) { stmt->methods->dtor(stmt TSRMLS_CC); } - + if(stmt->query_string) { + efree(stmt->query_string); + } zend_objects_store_del_ref(&stmt->database_object_handle TSRMLS_CC); efree(stmt);