diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-07-22 17:14:43 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-07-22 17:14:43 +0400 |
commit | 5fe7f799e043809f2fcd08ce164ff375b52d4283 (patch) | |
tree | 0545faf9db6c56772b5f169708f4cf8ecb273a3d /ext/posix/posix.c | |
parent | f2a2fcceceed5bb5851b459af9383d0da14a804b (diff) | |
download | php-git-5fe7f799e043809f2fcd08ce164ff375b52d4283.tar.gz |
Fixed compatibility
Diffstat (limited to 'ext/posix/posix.c')
-rw-r--r-- | ext/posix/posix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/posix/posix.c b/ext/posix/posix.c index bf7c28c50d..301507f655 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -753,7 +753,8 @@ PHP_FUNCTION(posix_ttyname) efree(p); RETURN_FALSE; } - RETURN_STRING(p, 0); + RETURN_STRING(p); + efree(p); #else if (NULL == (p = ttyname(fd))) { POSIX_G(last_error) = errno; |