From e710d1078da874a9e87925d448145ca6c5e6ac4b Mon Sep 17 00:00:00 2001 From: Jean-Yves Lamoureux Date: Thu, 9 Mar 2006 08:45:40 +0000 Subject: [PATCH] * Fixed memory leak in network driver --- caca/driver_network.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/caca/driver_network.c b/caca/driver_network.c index 5762600..8e2e8dd 100644 --- a/caca/driver_network.c +++ b/caca/driver_network.c @@ -179,6 +179,11 @@ static void network_display(caca_t *kk) perror("send"); return; } + + if(to_send) { + free(to_send); + } + } static void network_handle_resize(caca_t *kk) {