]> granicus.if.org Git - php/commitdiff
was leaking query_string's
authorGeorge Schlossnagle <gschlossnagle@php.net>
Tue, 18 May 2004 20:33:30 +0000 (20:33 +0000)
committerGeorge Schlossnagle <gschlossnagle@php.net>
Tue, 18 May 2004 20:33:30 +0000 (20:33 +0000)
ext/pdo/pdo_stmt.c

index 5bcb963ed168c59f24387d0cc520b1e7144ecfdb..02786ac1d7c2e1f5b4583d98744afb7125c603e8 100755 (executable)
@@ -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);