diff options
| author | default <nobody@localhost> | 2024-09-16 09:32:22 +0200 |
|---|---|---|
| committer | default <nobody@localhost> | 2024-09-16 09:32:22 +0200 |
| commit | 5402d03f17cd36e165afff4ef79ba2a900064160 (patch) | |
| tree | f9382ce40796106837b8e909f045594a88f86652 /xs_url.h | |
| parent | a09e5052ddd8df423332ada814e743893878e0b9 (diff) | |
Fixed minor memory leak.
Diffstat (limited to 'xs_url.h')
| -rw-r--r-- | xs_url.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |