Commit b239d99a authored by Luca Boccassi's avatar Luca Boccassi

Problem: test_security_gssapi does not close messages

Solution: do it to avoid leaks. Even though they are below 33 bytes so
it's all allocated on the stack, the small message size might change in
the future.
parent cd09065c
......@@ -74,6 +74,7 @@ get_monitor_event (void *monitor, int *value, char **address)
uint16_t event = *(uint16_t *) (data);
if (value)
*value = *(uint32_t *) (data + 2);
zmq_msg_close (&msg);
// Second frame in message contains event address
zmq_msg_init (&msg);
......@@ -88,6 +89,8 @@ get_monitor_event (void *monitor, int *value, char **address)
memcpy (*address, data, size);
*address [size] = 0;
}
zmq_msg_close (&msg);
return event;
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment