]> git.proxmox.com Git - ovs.git/commitdiff
ovsdb-idl: Fix memory leak of idl->remote.
authorHan Zhou <hzhou8@ebay.com>
Wed, 6 Mar 2019 17:01:21 +0000 (09:01 -0800)
committerBen Pfaff <blp@ovn.org>
Thu, 7 Mar 2019 19:17:25 +0000 (11:17 -0800)
Reported by Address Sanitizer.

Fixes: 5e07b8f93f03 ("ovsdb-idl: New function ovsdb_idl_create_unconnected().")
Signed-off-by: Han Zhou <hzhou8@ebay.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/ovsdb-idl.c

index 8cfb20133c358945fc91821048dd3c812a46d673..ed2b30a0849ce38d17fe8b7c10e18cefc84b9611 100644 (file)
@@ -571,6 +571,7 @@ ovsdb_idl_destroy(struct ovsdb_idl *idl)
         ovsdb_idl_db_destroy(&idl->server);
         ovsdb_idl_db_destroy(&idl->data);
         json_destroy(idl->request_id);
+        free(idl->remote);
         free(idl);
     }
 }