Skip to content

Commit

Permalink
Free malloc'ed memory
Browse files Browse the repository at this point in the history
  • Loading branch information
danix800 committed Aug 31, 2024
1 parent 5ee6a68 commit ebe43d1
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 ebe43d1

Please sign in to comment.