]> granicus.if.org Git - php/commitdiff
fix buffer overrun and remove debug printf() call
authorAntony Dovgal <tony2001@php.net>
Thu, 9 Dec 2004 08:22:06 +0000 (08:22 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 9 Dec 2004 08:22:06 +0000 (08:22 +0000)
ext/mysqli/mysqli.c

index e263f7f41de703257bdc554b2c9712e1df310f17..d9a8e1137baf0037155cf588541d8b41412f6f9d 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;
@@ -920,12 +919,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; 
 }
 /* }}} */