Fixed memory leak.

This commit is contained in:
pdw
2002-03-26 23:59:29 +00:00
parent 945ae2e394
commit 0ae08569c2

View File

@@ -65,6 +65,7 @@ void history_rotate() {
if(d->last_write == history_pos) { if(d->last_write == history_pos) {
addr_pair key = *(addr_pair*)(n->key); addr_pair key = *(addr_pair*)(n->key);
hash_delete(history, &key); hash_delete(history, &key);
free(d);
} }
else { else {
d->recv[history_pos] = 0; d->recv[history_pos] = 0;