summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/sockets/sockets.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c
index aa79e9a277..3ee1ac1cb2 100644
--- a/ext/sockets/sockets.c
+++ b/ext/sockets/sockets.c
@@ -1563,6 +1563,7 @@ PHP_FUNCTION(socket_recvfrom)
sin.sin_family = AF_INET;
if (arg6 == NULL) {
+ efree(recv_buf);
WRONG_PARAM_COUNT;
}
@@ -1591,6 +1592,7 @@ PHP_FUNCTION(socket_recvfrom)
sin6.sin6_family = AF_INET6;
if (arg6 == NULL) {
+ efree(recv_buf);
WRONG_PARAM_COUNT;
}