From 00e5dc311f9a80454fb202355a5a4b51d414d7d0 Mon Sep 17 00:00:00 2001 From: leander-256 Date: Thu, 20 May 2010 00:41:50 +0000 Subject: [PATCH] Bugfix A forgotten malloc() that should have been set to new git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2961 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/services/p3distrib.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/services/p3distrib.cc b/libretroshare/src/services/p3distrib.cc index 283933ed1..d3bad4178 100644 --- a/libretroshare/src/services/p3distrib.cc +++ b/libretroshare/src/services/p3distrib.cc @@ -1848,7 +1848,7 @@ std::string p3GroupDistrib::publishMsg(RsDistribMsg *msg, bool personalSign) RsSerialType *serialType = createSerialiser(); uint32_t size = serialType->size(msg); - void *data = malloc(size); + char *data = new char[size]; serialType->serialise(msg, data, &size); signedMsg->packet.setBinData(data, size);