diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2019-10-12 16:14:27 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2019-10-12 16:16:14 +0200 |
commit | c10d3d3a35b54945456dcd6208d09c86dec32b56 (patch) | |
tree | 33408bdc1559f8feda9f12181c2f0b4da581d3c3 | |
parent | 586f8515d5ff6e16700ea1ba0d6e196e2c59b45d (diff) | |
download | php-git-c10d3d3a35b54945456dcd6208d09c86dec32b56.tar.gz |
Fix potential heap corruption
`tmp` is allocated by `malloc()`, so we must not `LocalFree()` it.
-rw-r--r-- | ext/sockets/sockets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c index 21538e92e1..dd0023f46c 100644 --- a/ext/sockets/sockets.c +++ b/ext/sockets/sockets.c @@ -659,7 +659,7 @@ char *sockets_strerror(int error) /* {{{ */ } SOCKETS_G(strerror_buf) = estrdup(tmp); - LocalFree(tmp); + free(tmp); buf = SOCKETS_G(strerror_buf); } |