mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Fix memleak in get_start()
Regards https://github.com/profanity-im/profanity/issues/1019
This commit is contained in:
parent
57ebb7cfa6
commit
897dfbb3c1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user