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:
parent
f8e183ed13
commit
b156e298b5
@ -18,7 +18,7 @@ struct wfp_message_writer
|
||||
struct wfp_message_writer *
|
||||
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->id = id;
|
||||
writer->is_finished = false;
|
||||
|
Loading…
Reference in New Issue
Block a user