From 0ae08569c2d8ce91a2213eb469715305fca20e7e Mon Sep 17 00:00:00 2001 From: pdw <> Date: Tue, 26 Mar 2002 23:59:29 +0000 Subject: [PATCH] Fixed memory leak. --- iftop.c | 1 + 1 file changed, 1 insertion(+) 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;