diff options
author | LRN <lrn1986@gmail.com> | 2013-12-19 06:00:23 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-12-19 06:00:23 +0000 |
commit | e0ca7357cd0bfedc5c29cb731b56279fef8da059 (patch) | |
tree | ecfd47cf59bc00e656b53fd59c58f5038e342d65 /src/ats/perf_ats_solver.c | |
parent | 92fd84dc7ef98452f848a62677c61a2b80b5835e (diff) | |
download | gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.tar.gz gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.zip |
malloc -> new
Diffstat (limited to 'src/ats/perf_ats_solver.c')
-rw-r--r-- | src/ats/perf_ats_solver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ats/perf_ats_solver.c b/src/ats/perf_ats_solver.c index 0cfc72c69..89d0d82e2 100644 --- a/src/ats/perf_ats_solver.c +++ b/src/ats/perf_ats_solver.c | |||
@@ -456,7 +456,7 @@ solver_info_cb (void *cls, | |||
456 | if ((GAS_STAT_SUCCESS == stat) && (NULL == ph.current_result)) | 456 | if ((GAS_STAT_SUCCESS == stat) && (NULL == ph.current_result)) |
457 | { | 457 | { |
458 | /* Create new result */ | 458 | /* Create new result */ |
459 | tmp = GNUNET_malloc (sizeof (struct Result)); | 459 | tmp = GNUNET_new (struct Result); |
460 | ph.current_result = tmp; | 460 | ph.current_result = tmp; |
461 | GNUNET_CONTAINER_DLL_insert_tail(ph.head, ph.tail, tmp); | 461 | GNUNET_CONTAINER_DLL_insert_tail(ph.head, ph.tail, tmp); |
462 | ph.current_result->addresses = ph.current_a; | 462 | ph.current_result->addresses = ph.current_a; |