aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-11-11 08:56:37 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-11-11 08:56:37 +0000
commit846771a80f56a41803c8b5b5bf165c3b06be7677 (patch)
tree5849bc24afb491bcf7f98d4f7475b56b22bd5c30
parent90154d43ea47d82637b615f35d0c8462f4007c3d (diff)
downloadgnunet-846771a80f56a41803c8b5b5bf165c3b06be7677.tar.gz
gnunet-846771a80f56a41803c8b5b5bf165c3b06be7677.zip
don't forget the house keeping: fixing memory leak
-rw-r--r--src/ats/libgnunet_plugin_ats_proportional.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ats/libgnunet_plugin_ats_proportional.c b/src/ats/libgnunet_plugin_ats_proportional.c
index a073181e5..39524a17d 100644
--- a/src/ats/libgnunet_plugin_ats_proportional.c
+++ b/src/ats/libgnunet_plugin_ats_proportional.c
@@ -491,6 +491,7 @@ libgnunet_plugin_ats_proportional_done (void *cls)
491 next = cur->next; 491 next = cur->next;
492 GNUNET_CONTAINER_DLL_remove(s->network_entries[c].head, 492 GNUNET_CONTAINER_DLL_remove(s->network_entries[c].head,
493 s->network_entries[c].tail, cur); 493 s->network_entries[c].tail, cur);
494 GNUNET_free_non_null (cur->addr->solver_information);
494 GNUNET_free(cur); 495 GNUNET_free(cur);
495 } 496 }
496 GNUNET_free(s->network_entries[c].stat_total); 497 GNUNET_free(s->network_entries[c].stat_total);
@@ -1274,6 +1275,7 @@ GAS_proportional_address_delete (void *solver, struct ATS_Address *address,
1274 return; 1275 return;
1275 } 1276 }
1276 GNUNET_CONTAINER_DLL_remove(net->head, net->tail, aw); 1277 GNUNET_CONTAINER_DLL_remove(net->head, net->tail, aw);
1278 GNUNET_free_non_null (aw->addr->solver_information);
1277 GNUNET_free(aw); 1279 GNUNET_free(aw);
1278 } 1280 }
1279 else 1281 else