Fix to the memory leak in discarding dirty nodes in BnodeCache::flush()
Fix to the memory leak in discarding dirty nodes in BnodeCache::flush()

Change-Id: I31edc58e007da1023ce93ee6d84442cf09473ae8
Reviewed-on: http://review.couchbase.org/70386
Tested-by: buildbot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Reviewed-by: Jung-Sang Ahn <e5ecb2c8d8dfc8277aaaee7c50855d74a54a4afa@gmail.com>

couchbase/forestdb,wurikiji/forestdb,couchbase/forestdb,wurikiji/forestdb