ovs-appctl: Close the connection during error.
[sliver-openvswitch.git] / utilities / ovs-appctl.c
index 9fd0234..c6a7fd4 100644 (file)
@@ -63,6 +63,7 @@ main(int argc, char *argv[])
     }
 
     if (cmd_error) {
+        jsonrpc_close(client);
         fputs(cmd_error, stderr);
         ovs_error(0, "%s: server returned an error", target);
         exit(2);