Skip to content

Commit ebe43d1

Browse files
committed
Free malloc'ed memory
1 parent 5ee6a68 commit ebe43d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/startup/darling.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ static void pushShellspawnCommandData(int sockfd, shellspawn_cmd_type_t type, co
280280
fprintf(stderr, "Error sending command to shellspawn: %s\n", strerror(errno));
281281
exit(EXIT_FAILURE);
282282
}
283+
284+
free(cmd);
283285
}
284286

285287
static void pushShellspawnCommand(int sockfd, shellspawn_cmd_type_t type, const char* value)

0 commit comments

Comments
 (0)