bucket_engine: Fix leaks in testapp
bucket_engine: Fix leaks in testapp

Change-Id: Ia430b1f1dccc27779145e29d68e9615ae633c029
Reviewed-on: http://review.couchbase.org/49587
Tested-by: buildbot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Reviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>

owendCB/memcached,owendCB/memcached,cloudrain21/memcached-1,daverigby/kv_engine,cloudrain21/memcached-1,owendCB/memcached,daverigby/memcached,daverigby/kv_engine,couchbase/memcached,couchbase/memcached,daverigby/memcached,cloudrain21/memcached-1,daverigby/memcached,couchbase/memcached,daverigby/kv_engine,daverigby/memcached,daverigby/kv_engine,couchbase/memcached,owendCB/memcached,cloudrain21/memcached-1