From 5f67710f1636f2b958e7223ba4bb4f17b0296e1f Mon Sep 17 00:00:00 2001 From: Phenom Date: Thu, 3 Dec 2020 10:58:59 +0100 Subject: [PATCH] Fix RsGxsDataAccess req delete when failed. --- libretroshare/src/gxs/rsgxsdataaccess.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/gxs/rsgxsdataaccess.cc b/libretroshare/src/gxs/rsgxsdataaccess.cc index 60ad7339b..cd4f80af9 100644 --- a/libretroshare/src/gxs/rsgxsdataaccess.cc +++ b/libretroshare/src/gxs/rsgxsdataaccess.cc @@ -833,8 +833,8 @@ void RsGxsDataAccess::processRequests() } else { - req->status = FAILED; mPublicToken[req->token] = FAILED; + delete req;//req belongs to no one now #ifdef DATA_DEBUG RsDbg() << " Request failed. Marking as FAILED." << std::endl; #endif