From 9ada6a6b80e0708d253e658ce5a670c93d94015b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Fri, 18 Jun 2021 10:22:41 +0800 Subject: Especially on Emscripten, post is pointed by userData, to be freed later --- client.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client.c b/client.c index b43d1c5..436ae99 100644 --- a/client.c +++ b/client.c @@ -97,11 +97,10 @@ void icclient_free_catalog(struct icclient_catalog *catalog) void icclient_free_response(icclient_response *response) { -#ifdef __EMSCRIPTEN__ - emscripten_fetch_close(response); -#else if (response->userData) free(response->userData); +#ifdef __EMSCRIPTEN__ + emscripten_fetch_close(response); #endif } -- cgit v1.2.3