From 65f92a50690e6f1dddbc11e95db7301343f1c018 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 2 Feb 2010 14:18:01 -0800 Subject: [PATCH] ovs-appctl: Free memory on exit. This makes it easier to see real memory leaks. Found via valgrind. --- utilities/ovs-appctl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utilities/ovs-appctl.c b/utilities/ovs-appctl.c index 1302bf2e..7a3d91e5 100644 --- a/utilities/ovs-appctl.c +++ b/utilities/ovs-appctl.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009 Nicira Networks. + * Copyright (c) 2008, 2009, 2010 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -71,6 +71,10 @@ main(int argc, char *argv[]) } fputs(reply, stdout); + unixctl_client_destroy(client); + free(reply); + ds_destroy(&request); + return 0; } -- 2.30.2