diff --git a/src/core/socket.c b/src/core/socket.c index cc384b206..8df64ee83 100644 --- a/src/core/socket.c +++ b/src/core/socket.c @@ -1249,6 +1249,8 @@ static int socket_spawn(Socket *s, ExecCommand *c, pid_t *_pid) { NULL, s->exec_runtime, &pid); + if (r < 0) + goto fail; strv_free(argv); if (r < 0)