Skip to content

Commit

Permalink
Merge pull request #1541 from danix800/fix/cmd-mem-leak
Browse files Browse the repository at this point in the history
Free malloc'ed memory
  • Loading branch information
CuriousTommy authored Aug 31, 2024
2 parents 7d3041a + ebe43d1 commit 5c31404
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/startup/darling.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5c31404

Please sign in to comment.