kwo pushed a commit to branch master.

commit 8c5be8b4683a3bbaa1166f69d069b5a5c02922c6
Author: Kim Woelders <[email protected]>
Date:   Sun Mar 17 15:05:39 2013 +0100

    Fix memory leak.
---
 viewer.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/viewer.c b/viewer.c
index 6949df7..a44866b 100644
--- a/viewer.c
+++ b/viewer.c
@@ -668,9 +668,9 @@ create_list_window(void)
           printf("buf(%d): %s\n", j, buf);
 #endif
           if (j < 3)
-             continue;
+             goto next;
           if (strcmp(event, "KeyDown"))
-             continue;
+             goto next;
 
           params = buf + len;
 #if DEBUG > 0
@@ -694,6 +694,7 @@ create_list_window(void)
           gtk_clist_append(GTK_CLIST(clist), (char **)stuff);
           real_rows++;
 
+        next:
           g_free(buf);
        }
       g_free(msg);

-- 

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar

Reply via email to