From: Ben Pfaff Date: Tue, 2 Feb 2010 22:18:01 +0000 (-0800) Subject: ovs-appctl: Free memory on exit. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65f92a50690e6f1dddbc11e95db7301343f1c018;p=openvswitch ovs-appctl: Free memory on exit. This makes it easier to see real memory leaks. Found via valgrind. --- 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; }