Permalink
Browse files

PCBC-75: Free persistent structures correctly.

Change-Id: Ib5fce6428f701ab8e9c8bf60b1d9c100bdec2acf
Reviewed-on: http://review.couchbase.org/17386
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
  • Loading branch information...
1 parent aba4d7d commit e959001ce680862ee1df63afa0f1958a8b452f1e @ingenthr ingenthr committed with ingenthr Jun 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 couchbase.c
View
@@ -1269,7 +1269,7 @@ static void php_couchbase_create_impl(INTERNAL_FUNCTION_PARAMETERS, int oo) /* {
php_error_docref(NULL TSRMLS_CC, E_WARNING,
"Failed to connect libcouchbase to server: %s", libcouchbase_strerror(handle, retval));
libcouchbase_destroy(handle);
- efree(couchbase_res);
+ pefree(couchbase_res, persistent);
efree(ctx);
RETURN_FALSE;
}

0 comments on commit e959001

Please sign in to comment.