aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-05 22:40:56 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-05 22:40:56 +0000
commit3840406bf507bebebd1961ae818f7988b411e708 (patch)
tree3da3bc26081a5d338fe21ac8b8a4b6337f2c065a /src
parent80725c91dc8f08a2de937c75c9ec222bac5c4666 (diff)
downloadgnunet-3840406bf507bebebd1961ae818f7988b411e708.tar.gz
gnunet-3840406bf507bebebd1961ae818f7988b411e708.zip
-fix leak of emsg
Diffstat (limited to 'src')
-rw-r--r--src/testbed/gnunet-service-testbed_peers.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testbed/gnunet-service-testbed_peers.c b/src/testbed/gnunet-service-testbed_peers.c
index 88c8c8231..9bcb058ea 100644
--- a/src/testbed/gnunet-service-testbed_peers.c
+++ b/src/testbed/gnunet-service-testbed_peers.c
@@ -940,9 +940,10 @@ GST_handle_peer_reconfigure (void *cls, struct GNUNET_SERVER_Client *client,
940 GST_send_operation_fail_msg (client, op_id, emsg); 940 GST_send_operation_fail_msg (client, op_id, emsg);
941 GST_send_operation_success_msg (client, op_id); 941 GST_send_operation_success_msg (client, op_id);
942 GNUNET_SERVER_receive_done (client, GNUNET_OK); 942 GNUNET_SERVER_receive_done (client, GNUNET_OK);
943 GNUNET_free_non_null (emsg);
943 return; 944 return;
944 } 945 }
945 prc = GNUNET_malloc (sizeof (struct PeerReconfigureContext)); 946 prc = GNUNET_new (struct PeerReconfigureContext);
946 if (GNUNET_OK != 947 if (GNUNET_OK !=
947 GNUNET_TESTING_peer_stop_async (peer->details.local.peer, &prc_stop_cb, 948 GNUNET_TESTING_peer_stop_async (peer->details.local.peer, &prc_stop_cb,
948 prc)) 949 prc))
@@ -1235,7 +1236,7 @@ GST_handle_manage_peer_service (void *cls, struct GNUNET_SERVER_Client *client,
1235 peer_id); 1236 peer_id);
1236 goto err_ret; 1237 goto err_ret;
1237 } 1238 }
1238 mctx = GNUNET_malloc (sizeof (struct ManageServiceContext)); 1239 mctx = GNUNET_new (struct ManageServiceContext);
1239 mctx->peer = peer; 1240 mctx->peer = peer;
1240 peer->reference_cnt++; 1241 peer->reference_cnt++;
1241 mctx->op_id = op_id; 1242 mctx->op_id = op_id;