From: Dmitry Stogov Date: Wed, 7 Sep 2005 15:34:50 +0000 (+0000) Subject: Fixed memory allocation bug X-Git-Tag: RELEASE_0_9_0~268 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7eeb91187b582b984771770304c827cae00fcb29;p=php Fixed memory allocation bug --- diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c index da02dd02ad..88ff86c8b6 100644 --- a/ext/openssl/xp_ssl.c +++ b/ext/openssl/xp_ssl.c @@ -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);