diff options
Diffstat (limited to 'src/plugins/http_static')
-rw-r--r-- | src/plugins/http_static/static_server.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/http_static/static_server.c b/src/plugins/http_static/static_server.c index a9b3fdbb08a..bd231b44b47 100644 --- a/src/plugins/http_static/static_server.c +++ b/src/plugins/http_static/static_server.c @@ -300,6 +300,10 @@ hss_session_send_data (hss_url_handler_args_t *args) hss_session_t *hs; hs = hss_session_get (args->sh.thread_index, args->sh.session_index); + + if (hs->data && hs->free_data) + vec_free (hs->data); + hs->data = args->data; hs->data_len = args->data_len; hs->free_data = args->free_vec_data; |