client: fix double free

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2021-06-01 08:24:40 +02:00
parent 6ae7c78969
commit a7feee0dd8

1
cmd.c
View File

@@ -35,7 +35,6 @@ cmd_complete_cb(struct task *t, time_t uuid, uint32_t id, int ret)
char str[128];
sprintf(str, "/tmp/ucentral.cmd.%010ld", uuid);
unlink(str);
free(t);
if (ret)
result_send_error(1, "command returned an error code", ret, id);
}