From aba3d2fb35d17bd5025c3271d20717b16ab4008f Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 20 Apr 2016 18:24:02 -0400 Subject: [PATCH] removed memory leak due to zeroing (on purpose!) a data chunk in GRouter before deleting it --- libretroshare/src/grouter/p3grouter.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/libretroshare/src/grouter/p3grouter.cc b/libretroshare/src/grouter/p3grouter.cc index 2770b52dd..306f72d74 100644 --- a/libretroshare/src/grouter/p3grouter.cc +++ b/libretroshare/src/grouter/p3grouter.cc @@ -613,7 +613,6 @@ RsGRouterAbstractMsgItem *GRouterDataInfo::addDataChunk(RsGRouterTransactionChun { RsItem *data_item = RsGRouterSerialiser().deserialise(incoming_data_buffer->chunk_data,&incoming_data_buffer->chunk_size) ; - incoming_data_buffer->chunk_data = NULL; delete incoming_data_buffer; incoming_data_buffer = NULL ;