diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-10-06 17:42:44 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-10-06 17:42:44 +0200 |
commit | 897dfbb3c1f74961ab068e460b99a128a270efb8 (patch) | |
tree | c11c5628f47a531cb7dbe465f7f44b2e225e86e5 | |
parent | 57ebb7cfa650ee62aeb806a0389f7b859267ff25 (diff) | |
download | profani-tty-897dfbb3c1f74961ab068e460b99a128a270efb8.tar.gz |
Fix memleak in get_start()
Regards https://github.com/profanity-im/profanity/issues/1019
-rw-r--r-- | src/tools/parser.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/parser.c b/src/tools/parser.c index 474a664e..c6e1b73e 100644 --- a/src/tools/parser.c +++ b/src/tools/parser.c @@ -368,6 +368,7 @@ get_start(const char *const string, int tokens) int len = g_unichar_to_utf8(curr_uni, uni_char); uni_char[len] = '\0'; g_string_append(result, uni_char); + free(uni_char); } if (curr_uni == ' ') { if (!in_quotes) { |