]> granicus.if.org Git - php/commitdiff
One more leak down.
authorIlia Alshanetsky <iliaa@php.net>
Tue, 25 May 2004 16:40:54 +0000 (16:40 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 25 May 2004 16:40:54 +0000 (16:40 +0000)
ext/pdo/pdo_stmt.c

index 21163a6926f881f5b4a136068eb00b0cd176149a..cd414d75d37a6a9e84305c70aea5c7e23d528e55 100755 (executable)
@@ -806,6 +806,8 @@ void pdo_dbstmt_free_storage(zend_object *object TSRMLS_DC)
                for (i = 0; i < stmt->column_count; i++) {
                        efree(cols[i].name);
                }
+       }
+       if (stmt->columns) {
                efree(stmt->columns);
        }