fix: stack memory usage after release (#2763)
fix: stack memory usage after release (#2763)

* parent directory created inside the function is used, which is causing the error. Avoid by creating the in the parent scope. 
couchbase/couchbase-lite-ios,couchbase/couchbase-lite-ios,couchbase/couchbase-lite-ios,couchbase/couchbase-lite-ios,couchbase/couchbase-lite-ios,couchbase/couchbase-lite-ios