Explorar el Código

Don't leak fd when malloc fails (coverity)

tags/v0.99.beta19
Pascal Terjan pterjan hace 11 años
padre
commit
c80bd429bd
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. +3
    -0
      src/cacaserver.c

+ 3
- 0
src/cacaserver.c Ver fichero

@@ -321,7 +321,10 @@ static void manage_connections(struct server *server)
{
server->clients = malloc(sizeof(struct client));
if(server->clients == NULL)
{
close(fd);
return;
}
}
else
{


Cargando…
Cancelar
Guardar