aboutsummaryrefslogtreecommitdiff
path: root/src/psyc/psyc_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-08-27 16:33:40 +0000
committerChristian Grothoff <christian@grothoff.org>2016-08-27 16:33:40 +0000
commit7aa06c2b3ec477136f5821f3aff406ec9cb290ad (patch)
treed776ab528d16155b0fc12c14e126d6d02abdd260 /src/psyc/psyc_api.c
parentc98144d6b8d6519b7fffd817d940e59d88d88329 (diff)
downloadgnunet-7aa06c2b3ec477136f5821f3aff406ec9cb290ad.tar.gz
gnunet-7aa06c2b3ec477136f5821f3aff406ec9cb290ad.zip
-fix leak
Diffstat (limited to 'src/psyc/psyc_api.c')
-rw-r--r--src/psyc/psyc_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/psyc/psyc_api.c b/src/psyc/psyc_api.c
index ca72a44c0..f74930237 100644
--- a/src/psyc/psyc_api.c
+++ b/src/psyc/psyc_api.c
@@ -720,10 +720,10 @@ GNUNET_PSYC_master_start (const struct GNUNET_CONFIGURATION_Handle *cfg,
720 GNUNET_PSYC_MessagePartCallback message_part_cb, 720 GNUNET_PSYC_MessagePartCallback message_part_cb,
721 void *cls) 721 void *cls)
722{ 722{
723 struct GNUNET_PSYC_Master *mst = GNUNET_malloc (sizeof (*mst)); 723 struct GNUNET_PSYC_Master *mst = GNUNET_new (struct GNUNET_PSYC_Master);
724 struct GNUNET_PSYC_Channel *chn = &mst->chn; 724 struct GNUNET_PSYC_Channel *chn = &mst->chn;
725 struct MasterStartRequest *req;
725 726
726 struct MasterStartRequest *req = GNUNET_malloc (sizeof (*req));
727 chn->connect_env = GNUNET_MQ_msg (req, 727 chn->connect_env = GNUNET_MQ_msg (req,
728 GNUNET_MESSAGE_TYPE_PSYC_MASTER_START); 728 GNUNET_MESSAGE_TYPE_PSYC_MASTER_START);
729 req->channel_key = *channel_key; 729 req->channel_key = *channel_key;