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();
        }
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to