summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordenis <>2007-02-01 22:23:56 +0000
committerdenis <>2007-02-01 22:23:56 +0000
commit484565b6b782e27053d21785aa8b89597e1b3843 (patch)
tree70eae4c1078c78b3b4179eec2d9308e5cff6803d
parent4569b9ffdf9507b4444f70fcb8144fa0ba6dc9fe (diff)
clear the freed mempointer
-rw-r--r--trackerlogic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/trackerlogic.c b/trackerlogic.c
index 26d50f4..81db51d 100644
--- a/trackerlogic.c
+++ b/trackerlogic.c
@@ -103,6 +103,7 @@ static int vector_remove_peer( ot_vector *vector, ot_peer *peer ) {
103 /* for peer pools its safe to let them go, 103 /* for peer pools its safe to let them go,
104 in 999 of 1000 this happens in older pools, that won't ever grow again */ 104 in 999 of 1000 this happens in older pools, that won't ever grow again */
105 free( vector->data ); 105 free( vector->data );
106 vector->data = NULL;
106 vector->space = 0; 107 vector->space = 0;
107 } 108 }
108 return exactmatch; 109 return exactmatch;