Merge pull request #1541 from danix800/fix/cmd-mem-leak

Free malloc'ed memory
This commit is contained in:
CuriousTommy 2024-08-31 15:51:15 -07:00 committed by GitHub
commit 5c31404022
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)