cvs: php4 /ext/dio dio.c

From: Date: Sun, 03 Nov 2002 13:22:50 +0000
Subject: cvs: php4 /ext/dio dio.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-15748@lists.php.net to get a copy of this message
wez Sun Nov 3 08:22:50 2002 EDT Modified files: /php4/ext/dio dio.c Log: Fix leak when read call fails (see comment in #16635). Index: php4/ext/dio/dio.c diff -u php4/ext/dio/dio.c:1.20 php4/ext/dio/dio.c:1.21 --- php4/ext/dio/dio.c:1.20 Sat Oct 19 13:13:14 2002 +++ php4/ext/dio/dio.c Sun Nov 3 08:22:49 2002 @@ -187,6 +187,7 @@ data = emalloc(bytes + 1); res = read(f->fd, data, bytes); if (res <= 0) { + efree(data); RETURN_NULL(); }

« previous php.cvs (#15748) next »