Fixed memory allocation bug

This commit is contained in:
Dmitry Stogov 2005-09-07 15:36:31 +00:00
parent 7f293b91b4
commit 8a39d704c4

View File

@ -451,7 +451,7 @@ static inline int php_openssl_tcp_sockop_accept(php_stream *stream, php_openssl_
if (clisock >= 0) {
php_openssl_netstream_data_t *clisockdata;
clisockdata = pemalloc(sizeof(*clisockdata), stream->is_persistent);
clisockdata = emalloc(sizeof(*clisockdata));
if (clisockdata == NULL) {
closesocket(clisock);