socket: check return from exec_spawn

(cherry picked from commit cee288adf8)
This commit is contained in:
Thomas Hindoe Paaboel Andersen
2014-06-21 10:33:38 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent 266eaa6b59
commit ca5fd86c37
+2
View File
@@ -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)