* Copyright (C) 2016 Andy Green <andy@warmcat.com>
*
* This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public
+ * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation:
* version 2.1 of the License.
*
email->content = lws_malloc(max_content);
if (!email->content)
return 1;
+
email->max_content_size = max_content;
uv_timer_init(loop, &email->timeout_email);
lws_free_set_NULL(email->content);
uv_timer_stop(&email->timeout_email);
+ uv_close((uv_handle_t *)&email->timeout_email, NULL);
}