diff --git a/src/libguac/socket-nest.c b/src/libguac/socket-nest.c index 29319097f..8bf94352a 100644 --- a/src/libguac/socket-nest.c +++ b/src/libguac/socket-nest.c @@ -315,7 +315,7 @@ guac_socket* guac_socket_nest(guac_socket* parent, int index) { /* Allocate socket and associated data */ guac_socket* socket = guac_socket_alloc(); - guac_socket_nest_data* data = guac_mem_alloc(sizeof(guac_socket_nest_data)); + guac_socket_nest_data* data = guac_mem_zalloc(sizeof(guac_socket_nest_data)); /* Store nested socket details as socket data */ data->parent = parent;