diff options
author | Felix Herrmann <felix@herrmann-koenigsberg.de> | 2011-02-21 00:47:28 +0100 |
---|---|---|
committer | Felix Herrmann <felix@herrmann-koenigsberg.de> | 2011-02-21 02:55:57 +0100 |
commit | 16db5cab90d124a755cfba4644783a28d01fcf64 (patch) | |
tree | 8d669bcd0f0faefc5c14caefc8689d05d4016bea /src/uzbl-core.c | |
parent | a299262011692b86b39ed5911418ca5b83f4a68e (diff) |
fix memory leak in parse_command_parts
Diffstat (limited to 'src/uzbl-core.c')
-rw-r--r-- | src/uzbl-core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/uzbl-core.c b/src/uzbl-core.c index 779f378..e565b14 100644 --- a/src/uzbl-core.c +++ b/src/uzbl-core.c @@ -1161,8 +1161,10 @@ parse_command_parts(const gchar *line, GArray *a) { CommandInfo *c = NULL; gchar *exp_line = expand(line, 0); - if(exp_line[0] == '\0') + if(exp_line[0] == '\0') { + g_free(exp_line); return NULL; + } /* separate the line into the command and its parameters */ gchar **tokens = g_strsplit(exp_line, " ", 2); |