[ovs-dev] [PATCH v2 02/26] ovn-nbctl: Fix memory leak in client mode.
Ben Pfaff
blp at ovn.org
Thu Apr 1 23:20:44 UTC 2021
This isn't notable, since this commit frees it just before exiting, but
it cleans up the Address Sanitizer report.
Signed-off-by: Ben Pfaff <blp at ovn.org>
---
utilities/ovn-nbctl.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/utilities/ovn-nbctl.c b/utilities/ovn-nbctl.c
index 18405835699d..38a4cc7dbd57 100644
--- a/utilities/ovn-nbctl.c
+++ b/utilities/ovn-nbctl.c
@@ -7096,5 +7096,9 @@ nbctl_client(const char *socket_name,
free(cmd_result);
free(cmd_error);
jsonrpc_close(client);
+ for (int i = 0; i < argc; i++) {
+ free(argv[i]);
+ }
+ free(argv);
exit(exit_status);
}
--
2.29.2
More information about the dev
mailing list