When running php-couchbase in Apache or as PHP-FPM (NGINX) sporadic memory issues would occur. This was happening because the libcouchbase lcb_t struct was not being cleaned up properly. In the free storage call a call to lcb_destory was added to correct the issue.
Fixed random memory issues as the libcouchbase object was not getting…
… destroyed properly