diff --git a/src/startup/darling.c b/src/startup/darling.c index 6014f46e8..a3f27fbf3 100644 --- a/src/startup/darling.c +++ b/src/startup/darling.c @@ -280,6 +280,8 @@ static void pushShellspawnCommandData(int sockfd, shellspawn_cmd_type_t type, co fprintf(stderr, "Error sending command to shellspawn: %s\n", strerror(errno)); exit(EXIT_FAILURE); } + + free(cmd); } static void pushShellspawnCommand(int sockfd, shellspawn_cmd_type_t type, const char* value)