[hackers] [surf] fixing memoryleak. || Enno Boland (tox)

From: <hg_AT_suckless.org>
Date: Tue, 13 Oct 2009 21:16:28 +0000 (UTC)

changeset: 114:f5b97b5cc152
user: Enno Boland (tox) <tox_AT_s01.de>
date: Tue Oct 13 21:58:35 2009 +0200
files: surf.c
description:
fixing memoryleak.

diff -r d0bc831816ff -r f5b97b5cc152 surf.c
--- a/surf.c Tue Oct 13 21:52:43 2009 +0200
+++ b/surf.c Tue Oct 13 21:58:35 2009 +0200
@@ -144,9 +144,10 @@
 cleanup(void) {
         while(clients)
                 destroyclient(clients);
+ g_free(cookiefile);
+ g_free(dldir);
+ g_free(scriptfile);
         g_free(stylefile);
- g_free(scriptfile);
- g_free(dldir);
 }
 
 void
Received on Tue Oct 13 2009 - 21:16:28 UTC

This archive was generated by hypermail 2.2.0 : Tue Oct 13 2009 - 21:24:07 UTC