mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-13 08:38:15 +00:00
[zmq] Call va_end() on va_start()ed args.
This commit is contained in:
parent
02d64bd929
commit
5ba61f0034
@ -30,6 +30,7 @@ static int zmq_send_multipart(void *sock, const void* data, size_t size, ...)
|
|||||||
if (rc != 0)
|
if (rc != 0)
|
||||||
{
|
{
|
||||||
zmqError("Unable to initialize ZMQ msg");
|
zmqError("Unable to initialize ZMQ msg");
|
||||||
|
va_end(args);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,6 +44,7 @@ static int zmq_send_multipart(void *sock, const void* data, size_t size, ...)
|
|||||||
{
|
{
|
||||||
zmqError("Unable to send ZMQ msg");
|
zmqError("Unable to send ZMQ msg");
|
||||||
zmq_msg_close(&msg);
|
zmq_msg_close(&msg);
|
||||||
|
va_end(args);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -53,6 +55,7 @@ static int zmq_send_multipart(void *sock, const void* data, size_t size, ...)
|
|||||||
|
|
||||||
size = va_arg(args, size_t);
|
size = va_arg(args, size_t);
|
||||||
}
|
}
|
||||||
|
va_end(args);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user