Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Release AsyncIndexArg.

kishorencae65d3bed924
diff --git a/src/core_api.cpp b/src/core_api.cpp
index 5be2e85e..6720f859 100644
--- a/src/core_api.cpp
+++ b/src/core_api.cpp
@@ -611,6 +611,7 @@ bool get_replication_updates(http_req & req, http_res & res) {
bool async_write_request(void *data) {
LOG(INFO) << "async_write_request called";
AsyncIndexArg* index_arg = static_cast<AsyncIndexArg*>(data);
+ std::unique_ptr<AsyncIndexArg> index_arg_guard(index_arg);
if(index_arg->req->route_index == -1) {
return false;