diff options
author | Brendan Taylor <whateley@gmail.com> | 2011-02-28 18:02:20 -0700 |
---|---|---|
committer | Brendan Taylor <whateley@gmail.com> | 2011-02-28 18:02:20 -0700 |
commit | 848d621398793bad5c7f1fc2e4eec70630a6096c (patch) | |
tree | eff5dbebf629c8b94eb0467e123be52dd281fb24 /src | |
parent | 42c80b05a2e88a922ea5b5fe591ff50c021889d3 (diff) | |
parent | 16db5cab90d124a755cfba4644783a28d01fcf64 (diff) |
Merge branch 'fix_mem_leak_in_parse_command_parts' of git://github.com/felher/uzbl into experimental
Diffstat (limited to 'src')
-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 bc75d87..31ed50d 100644 --- a/src/uzbl-core.c +++ b/src/uzbl-core.c @@ -1162,8 +1162,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); |