]> granicus.if.org Git - php/commitdiff
MFH: buffer overrun & debug printf()
authorAntony Dovgal <tony2001@php.net>
Thu, 9 Dec 2004 08:24:33 +0000 (08:24 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 9 Dec 2004 08:24:33 +0000 (08:24 +0000)
ext/mysqli/mysqli.c

index 96a56ae9dc4c5658f14196f9696baa19ba713163..41d2f6c27445f28cfc18fbab1ae5b638b4499837 100644 (file)
@@ -108,7 +108,6 @@ void php_clear_stmt_bind(MY_STMT *stmt)
 /* {{{ php_clear_mysql */
 void php_clear_mysql(MY_MYSQL *mysql) {
        if (mysql->li_read) {
-               printf("freeing...\n");
                efree(Z_STRVAL_P(mysql->li_read));
                FREE_ZVAL(mysql->li_read);
                mysql->li_read = NULL;
@@ -919,12 +918,10 @@ void php_local_infile_end(void *ptr)
        data= (mysqli_local_infile *)ptr;
 
        if (!(mysql = data->userdata)) {
-               efree(data);
                return;
        }
 
        php_stream_close(mysql->li_stream);
-       //efree(data);
        return; 
 }
 /* }}} */