Fix PCBC-75 fix invalid efree on persistent resources
Fix PCBC-75 fix invalid efree on persistent resources

Forward ported from 1.0.x

Fixed freeing of un-initialized pointer, and possible double-free

Change-Id: I1f09c4e8ad8bbe369d6ef4b60e5f8d95a4737421
Reviewed-on: http://review.couchbase.org/20745
Reviewed-by: Sergey Avseyev <87f6d5e4fd3644c3c20800cde7fd3ad1569370b3@gmail.com>
Tested-by: Mordechai Nunberg <e7d42768707bf23038325b0b68d4b577e5f6064a@haskalah.org>

couchbase/php-ext-couchbase,couchbase/php-ext-couchbase,couchbase/php-ext-couchbase,couchbase/php-ext-couchbase,couchbase/php-ext-couchbase