cvs: pecl /apc apc_cache.c

From: Date: Mon, 11 Dec 2006 17:18:58 +0000
Subject: cvs: pecl /apc apc_cache.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-6792@lists.php.net to get a copy of this message
iliaa Mon Dec 11 17:18:58 2006 UTC Modified files: /pecl/apc apc_cache.c Log: Fixed memory leak on object serialization. http://cvs.php.net/viewvc.cgi/pecl/apc/apc_cache.c?r1=3.127&r2=3.128&diff_format=u Index: pecl/apc/apc_cache.c diff -u pecl/apc/apc_cache.c:3.127 pecl/apc/apc_cache.c:3.128 --- pecl/apc/apc_cache.c:3.127 Sun Dec 10 07:36:27 2006 +++ pecl/apc/apc_cache.c Mon Dec 11 17:18:58 2006 @@ -28,7 +28,7 @@ */ -/* $Id: apc_cache.c,v 3.127 2006/12/10 07:36:27 shire Exp $ */ +/* $Id: apc_cache.c,v 3.128 2006/12/11 17:18:58 iliaa Exp $ */ #include "apc_cache.h" #include "apc_lock.h" @@ -36,6 +36,7 @@ #include "apc_globals.h" #include "SAPI.h" #include "ext/standard/php_var.h" +#include "ext/standard/php_smart_str.h" /* TODO: rehash when load factor exceeds threshold */ @@ -835,6 +836,7 @@ dst->value.str.len = buf.len; CHECK(dst->value.str.val = apc_xmemcpy(buf.c, buf.len+1, allocate)); dst->type = src->type; + smart_str_free(&buf); } return dst; } else {

« previous php.pecl.cvs (#6792) next »