1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00

fix: fixed memory leak

This commit is contained in:
Falk Werner 2020-07-09 22:35:15 +02:00
parent f8e183ed13
commit b156e298b5

View File

@ -18,7 +18,7 @@ struct wfp_message_writer
struct wfp_message_writer * struct wfp_message_writer *
wfp_impl_message_writer_create(int id) wfp_impl_message_writer_create(int id)
{ {
struct wfp_message_writer * writer = malloc(sizeof(writer)); struct wfp_message_writer * writer = malloc(sizeof(struct wfp_message_writer));
writer->json_writer = wfp_impl_json_writer_create(1024, LWS_PRE); writer->json_writer = wfp_impl_json_writer_create(1024, LWS_PRE);
writer->id = id; writer->id = id;
writer->is_finished = false; writer->is_finished = false;