X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=utilities%2Fovs-appctl.c;h=7a3d91e5a01425e12501fa27882a1093ead502d0;hb=18b239f5833014524bc89f06bd54a0da518cdf78;hp=060e8e286db91c413721d7e67c23e501c547fef0;hpb=3fbe1d307e27ed99528d83cf866c7df497e58b77;p=openvswitch diff --git a/utilities/ovs-appctl.c b/utilities/ovs-appctl.c index 060e8e28..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; } @@ -170,7 +174,6 @@ connect_to_target(const char *target) if (target[0] != '/') { char *pidfile_name; - char *socket_name; pid_t pid; pidfile_name = xasprintf("%s/%s.pid", ovs_rundir, target);