1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Moved free in parse_args_with_freetext

issue #226
This commit is contained in:
James Booth 2013-09-23 01:19:54 +01:00
parent 25b274b8d1
commit b738e8f363

View File

@ -256,12 +256,12 @@ parse_args_with_freetext(const char * const inp, int min, int max)
}
}
free(copy);
if (in_token) {
tokens = g_slist_append(tokens, g_strndup(token_start, token_size));
}
free(copy);
int num = g_slist_length(tokens) - 1;
// if num args not valid return NULL