]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - http_send.c
string: Introduce arr_alloc().
[paraslash.git] / http_send.c
index 330b45ac1b3ec675a497796be614c07c0bbd9c36..fab703cde721ea894785deaa71d8052d728fab36 100644 (file)
@@ -80,6 +80,7 @@ static void http_shutdown(void)
 {
        http_shutdown_clients();
        generic_acl_deplete(&hss->acl);
+       free_sender_status(hss);
 }
 
 static int queue_chunk_or_shutdown(struct sender_client *sc,
@@ -190,7 +191,7 @@ static void http_post_select(fd_set *rfds, __a_unused fd_set *wfds)
        sc = accept_sender_client(hss, rfds);
        if (!sc)
                return;
-       phsd = para_malloc(sizeof(*phsd));
+       phsd = alloc(sizeof(*phsd));
        sc->private_data = phsd;
        phsd->status = HTTP_CONNECTED;
 }