diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-06-21 15:04:47 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-06-21 15:05:26 +0200 |
commit | 6cbe69e89e716f81a71f7541e2e0f036b297a2fc (patch) | |
tree | e6564b12103c1a19c07bfb702aee70c65ad3629d /src/core.c | |
parent | 12d5caf6a6af5cb4870d375e185341909fc61b7e (diff) |
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.
Diffstat (limited to 'src/core.c')
-rw-r--r-- | src/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |