From: Antony Dovgal Date: Thu, 9 Dec 2004 08:24:33 +0000 (+0000) Subject: MFH: buffer overrun & debug printf() X-Git-Tag: php-5.0.3RC2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6cb74fb8940db65477d0ec7bd51ab2cc96243338;p=php MFH: buffer overrun & debug printf() --- diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c index 96a56ae9dc..41d2f6c274 100644 --- a/ext/mysqli/mysqli.c +++ b/ext/mysqli/mysqli.c @@ -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; } /* }}} */