mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-24 05:55:04 +00:00
Fixed minor memory leak.
This commit is contained in:
parent
a09e5052dd
commit
5402d03f17
1 changed files with 2 additions and 1 deletions
3
xs_url.h
3
xs_url.h
|
@ -53,7 +53,8 @@ xs_dict *xs_url_vars(const char *str)
|
|||
const xs_val *v;
|
||||
|
||||
xs_list_foreach(args, v) {
|
||||
xs *kv = xs_split_n(xs_url_dec(v), "=", 1);
|
||||
xs *dv = xs_url_dec(v);
|
||||
xs *kv = xs_split_n(dv, "=", 1);
|
||||
|
||||
if (xs_list_len(kv) == 2) {
|
||||
const char *key = xs_list_get(kv, 0);
|
||||
|
|
Loading…
Reference in a new issue