'path' is usually not the right path (often it's NULL).
Introduced in commit
bde9f75de (unixctl: New JSON RPC back-end.).
Signed-off-by: Ben Pfaff <blp@nicira.com>
}
error = pstream_open(punix_path, &listener);
- free(punix_path);
- punix_path = NULL;
-
if (error) {
- ovs_error(error, "could not initialize control socket %s", path);
- return error;
+ ovs_error(error, "could not initialize control socket %s", punix_path);
+ goto exit;
}
unixctl_command_register("help", "", 0, 0, unixctl_help, NULL);
server->listener = listener;
list_init(&server->conns);
*serverp = server;
- return 0;
+
+exit:
+ free(punix_path);
+ return error;
}
static void