Cleaup memory leaks in example/libeventdirect
Cleaup memory leaks in example/libeventdirect

Change-Id: I88f0d2939724943ae16d67f11bb800b921bb7eb0
Reviewed-on: http://review.couchbase.org/83455
Tested-by: Build Bot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Reviewed-by: Sergey Avseyev <87f6d5e4fd3644c3c20800cde7fd3ad1569370b3@gmail.com>

couchbase/libcouchbase,kojiromike/libcouchbase,avsej/libcouchbase,avsej/libcouchbase,couchbase/libcouchbase,couchbase/libcouchbase,avsej/libcouchbase,avsej/libcouchbase,couchbase/libcouchbase,couchbase/libcouchbase,couchbase/libcouchbase,avsej/libcouchbase,avsej/libcouchbase,couchbase/libcouchbase,avsej/libcouchbase,kojiromike/libcouchbase,kojiromike/libcouchbase,kojiromike/libcouchbase