diff options
author | Wez Furlong <wez@php.net> | 2002-11-03 13:22:49 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-11-03 13:22:49 +0000 |
commit | 92e9c825b48fc8d6d5383f7438c848fc5f8329ca (patch) | |
tree | 4f5c351defeffcecb0e50758d6ebf4e961ef007c /ext/dio | |
parent | ee7f37ae58ad0925e99b15a0365af5369c059cda (diff) | |
download | php-git-92e9c825b48fc8d6d5383f7438c848fc5f8329ca.tar.gz |
Fix leak when read call fails (see comment in #16635).
Diffstat (limited to 'ext/dio')
-rw-r--r-- | ext/dio/dio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/dio/dio.c b/ext/dio/dio.c index 2deccb57e0..4337fc6ed9 100644 --- a/ext/dio/dio.c +++ b/ext/dio/dio.c @@ -187,6 +187,7 @@ PHP_FUNCTION(dio_read) data = emalloc(bytes + 1); res = read(f->fd, data, bytes); if (res <= 0) { + efree(data); RETURN_NULL(); } |