cvs: php4 /ext/midgard attachment.c
| From: | Emiliano Heyns | Date: | Thu, 15 Mar 2001 21:57:49 +0000 |
| Subject: | cvs: php4 /ext/midgard attachment.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-4589@lists.php.net to get a copy of this message | ||
emile Thu Mar 15 13:57:49 2001 EDT
Modified files:
/php4/ext/midgard attachment.c
Log:
closing file after serving it.
Index: php4/ext/midgard/attachment.c
diff -u php4/ext/midgard/attachment.c:1.10 php4/ext/midgard/attachment.c:1.11
--- php4/ext/midgard/attachment.c:1.10 Sun Mar 11 15:30:36 2001
+++ php4/ext/midgard/attachment.c Thu Mar 15 13:57:48 2001
@@ -1,4 +1,4 @@
-/* $Id: attachment.c,v 1.10 2001/03/11 23:30:36 davidg Exp $
+/* $Id: attachment.c,v 1.11 2001/03/15 21:57:48 emile Exp $
Copyright (C) 1999 Jukka Zitting <jukka.zitting@iki.fi>
Copyright (C) 2000 The Midgard Project ry
Copyright (C) 2000 Emile Heyns, Aurora SA <emile@iris-advies.com>
@@ -434,6 +434,7 @@
if (sapi_send_headers() != SUCCESS) {
mgd_free_pool(pool);
mgd_release(res);
+ fclose(fp);
RETURN_FALSE_BECAUSE(MGD_ERR_INTERNAL);
}
@@ -442,6 +443,7 @@
PHPWRITE(buf, b);
}
+ fclose(fp);
mgd_free_pool(pool);
mgd_release(res);
RETVAL_TRUE;