diff options
author | Thomas Punt <tpunt@php.net> | 2018-01-29 11:13:10 +0000 |
---|---|---|
committer | Thomas Punt <tpunt@php.net> | 2018-01-29 11:13:10 +0000 |
commit | fb128f6512dce083b35a26121a1d685caba16f2e (patch) | |
tree | a5583d64235a33abfc096546e7419499fb000225 /ext/sockets | |
parent | a882f95e39a7d9bc78fb5b4ed0210e345acab6d2 (diff) | |
download | php-git-fb128f6512dce083b35a26121a1d685caba16f2e.tar.gz |
Use the correct freeing function
Diffstat (limited to 'ext/sockets')
-rw-r--r-- | ext/sockets/sockets.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c index 6f7c237db4..72dedfc08b 100644 --- a/ext/sockets/sockets.c +++ b/ext/sockets/sockets.c @@ -1619,7 +1619,7 @@ PHP_FUNCTION(socket_recv) recv_buf = zend_string_alloc(len, 0); if ((retval = recv(php_sock->bsd_socket, ZSTR_VAL(recv_buf), len, flags)) < 1) { - efree(recv_buf); + zend_string_free(recv_buf); zval_dtor(buf); ZVAL_NULL(buf); @@ -1761,7 +1761,7 @@ PHP_FUNCTION(socket_recvfrom) sin6.sin6_family = AF_INET6; if (arg6 == NULL) { - efree(recv_buf); + zend_string_free(recv_buf); WRONG_PARAM_COUNT; } |