Fixed a possible crash

This commit is contained in:
Ilia Alshanetsky 2008-02-18 13:28:48 +00:00
parent 4cf7073a84
commit fe9f641658

View File

@ -1403,7 +1403,9 @@ void php_local_infile_end(void *ptr)
return;
}
php_stream_close(mysql->li_stream);
if (mysql->li_stream) {
php_stream_close(mysql->li_stream);
}
free(data);
return;
}