From e0ca7357cd0bfedc5c29cb731b56279fef8da059 Mon Sep 17 00:00:00 2001 From: LRN Date: Thu, 19 Dec 2013 06:00:23 +0000 Subject: malloc -> new --- src/transport/plugin_transport_smtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/transport/plugin_transport_smtp.c') diff --git a/src/transport/plugin_transport_smtp.c b/src/transport/plugin_transport_smtp.c index c886fd132..fd2089367 100644 --- a/src/transport/plugin_transport_smtp.c +++ b/src/transport/plugin_transport_smtp.c @@ -233,7 +233,7 @@ listenAndDistribute (void *unused) } if (stats != NULL) stats->change (stat_bytesReceived, size); - coreMP = GNUNET_malloc (sizeof (GNUNET_TransportPacket)); + coreMP = GNUNET_new (GNUNET_TransportPacket); coreMP->msg = out; coreMP->size = size - sizeof (SMTPMessage); coreMP->tsession = NULL; @@ -541,7 +541,7 @@ api_connect (const GNUNET_MessageHello * hello, GNUNET_TSession ** tsessionPtr, { GNUNET_TSession *tsession; - tsession = GNUNET_malloc (sizeof (GNUNET_TSession)); + tsession = GNUNET_new (GNUNET_TSession); tsession->internal = GNUNET_malloc (GNUNET_sizeof_hello (hello)); tsession->peer = hello->senderIdentity; memcpy (tsession->internal, hello, GNUNET_sizeof_hello (hello)); -- cgit v1.2.3