Free malloc'ed memory

This commit is contained in:
dingfei 2024-08-31 11:55:44 +08:00
parent 5ee6a68f1f
commit ebe43d1b25

View File

@ -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)