]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - send_common.c
Revert "Makefile: Fix compilation after header removal."
[paraslash.git] / send_common.c
index 9debdfca5a40a7ada404e9cf4a034140e2509a6b..90242d5c9b5ccb125617004e16fbf9b64d5484f6 100644 (file)
  */
 void shutdown_client(struct sender_client *sc, struct sender_status *ss)
 {
-       PARA_INFO_LOG("shutting down %s on fd %d\n", sc->name, sc->fd);
-       free(sc->name);
        if (!process_is_command_handler()) {
+               PARA_INFO_LOG("shutting down %s on fd %d\n", sc->name, sc->fd);
                close(sc->fd);
                del_close_on_fork_list(sc->fd);
        }
+       free(sc->name);
        cq_destroy(sc->cq);
        list_del(&sc->node);
        free(sc->private_data);