X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fconnection.c;h=496f6747fc05a738709f10e8c3783300c2685074;hb=5b07039b0712bee0f19749d63116a10fb08a2d8b;hp=9c459787eabbb5bc94a200a2dc01e3effbc1be58;hpb=9b9230a0a79c670b86f54fadd2807b864ff9d91f;p=meshlink diff --git a/src/connection.c b/src/connection.c index 9c459787..496f6747 100644 --- a/src/connection.c +++ b/src/connection.c @@ -48,7 +48,7 @@ void exit_connections(void) { } connection_t *new_connection(void) { - return xmalloc_and_zero(sizeof(connection_t)); + return xzalloc(sizeof(connection_t)); } void free_connection(connection_t *c) {