]> granicus.if.org Git - php/commitdiff
removed if type=string: val is allocated for any type of data
authorGeorg Richter <georg@php.net>
Thu, 18 Mar 2004 13:03:17 +0000 (13:03 +0000)
committerGeorg Richter <georg@php.net>
Thu, 18 Mar 2004 13:03:17 +0000 (13:03 +0000)
ext/mysqli/mysqli.c

index e8b1a9d9c8e09980704207acf4d006a9054c4c9d..8404618a3ea872b2f1f2651f829dda04e88d6cfb 100644 (file)
@@ -67,9 +67,7 @@ void php_free_stmt_bind_buffer(BIND_BUFFER bbuf, int type)
 
                /* free temporary bind buffer */
                if (type == FETCH_RESULT) {
-                       if (bbuf.buf[i].type == IS_STRING) {
-                               efree(bbuf.buf[i].val);
-                       }
+                       efree(bbuf.buf[i].val);
                }
 
                if (bbuf.vars[i]) {