diff options
| author | Ben Pfaff <blp@nicira.com> | 2010-02-01 14:57:48 -0800 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2010-02-02 15:21:10 -0800 |
| commit | 93ff0290fda0f02904686989243089faaa9229e6 (patch) | |
| tree | 251ee36ce71b041689455726d3c0bb29ed91f949 /tests/test-jsonrpc.c | |
| parent | b86b43aa485b5ab613ee6853b58f070db35339c9 (diff) | |
| download | openvswitch-93ff0290fda0f02904686989243089faaa9229e6.tar.gz | |
tests: Fix memory leaks in test programs.
This makes it easier to see memory leaks in the code under test.
Found with valgrind.
Diffstat (limited to 'tests/test-jsonrpc.c')
| -rw-r--r-- | tests/test-jsonrpc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-jsonrpc.c b/tests/test-jsonrpc.c index 570ae11a8..03d300011 100644 --- a/tests/test-jsonrpc.c +++ b/tests/test-jsonrpc.c @@ -251,9 +251,10 @@ do_listen(int argc UNUSED, char *argv[]) } poll_block(); } + free(rpcs); + pstream_close(pstream); } - static void do_request(int argc UNUSED, char *argv[]) { |
