mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 19:46:22 +00:00
Fix memleak in get_start()
Regards https://github.com/profanity-im/profanity/issues/1019
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user