From da0450972765d7339223a345704fe1e861a721da Mon Sep 17 00:00:00 2001 From: houchen <136762914@qq.com> Date: Tue, 23 Feb 2016 19:00:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dopen=E6=97=B6=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E5=86=85=E5=AD=98=E6=B3=84=E9=9C=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在查找时,不一定释放为查找生产的key --- 9.2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/9.2.md b/9.2.md index 1c89c26..7580c54 100644 --- a/9.2.md +++ b/9.2.md @@ -198,9 +198,9 @@ PHP_FUNCTION(sample_fopen) { //存在一个,直接使用! ZEND_REGISTER_RESOURCE(return_value,existing_file->ptr, le_sample_descriptor_persist); - efree(hash_key); return; } + efree(hash_key); fp = fopen(filename, mode); if (!fp)