From: Antony Dovgal Date: Thu, 9 Dec 2004 08:22:06 +0000 (+0000) Subject: fix buffer overrun and remove debug printf() call X-Git-Tag: RELEASE_0_2~547 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=01f31dcccb916f9c13c0d25e585b7cae2c20192d;p=php fix buffer overrun and remove debug printf() call --- diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c index e263f7f41d..d9a8e1137b 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; @@ -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; } /* }}} */