MFH, a fix not included by the fix committed by Ulf.

pemalloc and then efree - too bad!
Sorry for committing in two passes, my big tree is already patched
with compressed.
This commit is contained in:
Andrey Hristov 2009-09-17 15:13:14 +00:00
parent 1388912ded
commit c2e66884e1

View File

@ -1047,7 +1047,7 @@ php_mysqlnd_rset_header_read(void *_packet, MYSQLND *conn TSRMLS_DC)
p+=2;
/* Check for additional textual data */
if (packet->header.size > (p - buf) && (len = php_mysqlnd_net_field_length(&p))) {
packet->info_or_local_file = mnd_pemalloc(len + 1, conn->persistent);
packet->info_or_local_file = mnd_emalloc(len + 1);
memcpy(packet->info_or_local_file, p, len);
packet->info_or_local_file[len] = '\0';
packet->info_or_local_file_len = len;