]> 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:20:37 +0000 (11:20 -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 a7274dea2a8b87e46fcdd0399349564be3a53431..4c9862b88bc5625bbd341d779269e69364e5732d 100644 (file)
@@ -553,6 +553,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);
     }
 }