diff --git a/iftop.c b/iftop.c index f16f296..9a2796c 100644 --- a/iftop.c +++ b/iftop.c @@ -65,6 +65,7 @@ void history_rotate() { if(d->last_write == history_pos) { addr_pair key = *(addr_pair*)(n->key); hash_delete(history, &key); + free(d); } else { d->recv[history_pos] = 0;