diff options
Diffstat (limited to 'rcon.c')
-rw-r--r-- | rcon.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -31,7 +31,7 @@ rcon_free(struct uring_task *task) fprintf(stderr, "%s: called with task 0x%p and idle 0x%p\n", __func__, task, rcon); rcon->server->rcon = NULL; - free(rcon); + xfree(rcon); } void @@ -53,6 +53,7 @@ rcon_delete(struct cfg *cfg, struct server *server) fprintf(stderr, "%s called, closing fd %i\n", __func__, rcon->task.fd); uring_cancel(cfg, &rcon->task); + /* FIXME: Won't the refcount be wrong? */ uring_task_put(cfg, &rcon->task); server->rcon = NULL; } |