projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofproto: Fix implementation of OFPAT_SET_NW_DST.
[openvswitch]
/
tests
/
test-jsonrpc.c
diff --git
a/tests/test-jsonrpc.c
b/tests/test-jsonrpc.c
index 570ae11a839fa451996c98d64bd580001a525b70..06b1cf4750dc6c71a5ce6f9b688cf0098b0ec0b1 100644
(file)
--- a/
tests/test-jsonrpc.c
+++ b/
tests/test-jsonrpc.c
@@
-175,7
+175,7
@@
handle_rpc(struct jsonrpc *rpc, struct jsonrpc_msg *msg, bool *done)
}
static void
}
static void
-do_listen(int argc UNUSED, char *argv[])
+do_listen(int argc
OVS_
UNUSED, char *argv[])
{
struct pstream *pstream;
struct jsonrpc **rpcs;
{
struct pstream *pstream;
struct jsonrpc **rpcs;
@@
-251,11
+251,12
@@
do_listen(int argc UNUSED, char *argv[])
}
poll_block();
}
}
poll_block();
}
+ free(rpcs);
+ pstream_close(pstream);
}
}
-
static void
static void
-do_request(int argc UNUSED, char *argv[])
+do_request(int argc
OVS_
UNUSED, char *argv[])
{
struct jsonrpc_msg *msg;
struct jsonrpc *rpc;
{
struct jsonrpc_msg *msg;
struct jsonrpc *rpc;
@@
-294,7
+295,7
@@
do_request(int argc UNUSED, char *argv[])
}
static void
}
static void
-do_notify(int argc UNUSED, char *argv[])
+do_notify(int argc
OVS_
UNUSED, char *argv[])
{
struct jsonrpc_msg *msg;
struct jsonrpc *rpc;
{
struct jsonrpc_msg *msg;
struct jsonrpc *rpc;
@@
-326,7
+327,7
@@
do_notify(int argc UNUSED, char *argv[])
}
static void
}
static void
-do_help(int argc
UNUSED, char *argv[]
UNUSED)
+do_help(int argc
OVS_UNUSED, char *argv[] OVS_
UNUSED)
{
usage();
}
{
usage();
}