mirror of
https://github.com/darlinghq/darling.git
synced 2024-11-26 22:00:29 +00:00
Free malloc'ed memory
This commit is contained in:
parent
5ee6a68f1f
commit
ebe43d1b25
@ -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