From 6cbe69e89e716f81a71f7541e2e0f036b297a2fc Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Fri, 21 Jun 2024 15:04:47 +0200 Subject: rest: add cmd to shell/output Add "cmd" field to json that provides the original command string, so it is provided with the output and the return code. --- src/core.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core.c') diff --git a/src/core.c b/src/core.c index eaed6bb..5ac7802 100644 --- a/src/core.c +++ b/src/core.c @@ -32,6 +32,7 @@ static void og_client_release(struct ev_loop *loop, struct og_client *cli) ev_timer_stop(loop, &cli->timer); ev_io_stop(loop, &cli->io); close(cli->io.fd); + free((void *)cli->shell.cmd); free((void *)cli->shell.output); free(cli); } -- cgit v1.2.3-18-g5258