mirror of
https://github.com/darlinghq/darling.git
synced 2024-11-26 22:00:29 +00:00
Merge pull request #1541 from danix800/fix/cmd-mem-leak
Free malloc'ed memory
This commit is contained in:
commit
5c31404022
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user