]> git.armaanb.net Git - chorizo.git/commitdiff
Always free "tokens" in keywords_load()
authorPeter Hofmann <scm@uninformativ.de>
Thu, 24 Jul 2014 17:23:42 +0000 (19:23 +0200)
committerPeter Hofmann <scm@uninformativ.de>
Thu, 24 Jul 2014 17:23:42 +0000 (19:23 +0200)
Closes #5.

browser.c

index 4fc6b71e9994c2cff7ac9170d2258f013a532ee4..ac2e8e8aa1bbee0967054cf4cec3973b887eab43 100644 (file)
--- a/browser.c
+++ b/browser.c
@@ -823,8 +823,7 @@ keywords_load(void)
                                tokens = g_strsplit(buf, " ", 2);
                                if (tokens[0] != NULL && tokens[1] != NULL)
                                        g_hash_table_insert(keywords, tokens[0], tokens[1]);
-                               else
-                                       g_strfreev(tokens);
+                               g_strfreev(tokens);
                        }
                        g_free(buf);
                }