From 732407f1bf12364375162e8fb73816532a5d139c Mon Sep 17 00:00:00 2001 From: Damien Date: Sun, 29 Dec 2013 19:33:23 +0000 Subject: Change memory allocation API to require size for free and realloc. --- stm/pybwlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stm/pybwlan.c') diff --git a/stm/pybwlan.c b/stm/pybwlan.c index c078ecfe1..73aa8273f 100644 --- a/stm/pybwlan.c +++ b/stm/pybwlan.c @@ -191,7 +191,7 @@ mp_obj_t pyb_wlan_http_get(mp_obj_t host_name, mp_obj_t host_path) { vstr_add_strn(vstr, buf, ret); } - mp_ret = mp_obj_new_str(qstr_from_str_take(vstr_str(vstr))); + mp_ret = mp_obj_new_str(qstr_from_str_take(vstr->buf, vstr->alloc)); } closesocket(sd); -- cgit v1.2.3