aboutsummaryrefslogtreecommitdiff
path: root/stm/pybwlan.c
diff options
context:
space:
mode:
authorDamien2013-12-29 19:33:23 +0000
committerDamien2013-12-29 19:33:23 +0000
commit732407f1bf12364375162e8fb73816532a5d139c (patch)
treebf795d7bab01d6d603eec761affac7091be9606a /stm/pybwlan.c
parenta1c8e5737cebba08909104d47c1dfd16ef80e6a1 (diff)
Change memory allocation API to require size for free and realloc.
Diffstat (limited to 'stm/pybwlan.c')
-rw-r--r--stm/pybwlan.c2
1 files changed, 1 insertions, 1 deletions
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);