[ovs-dev] [PATCH] ovsdb: Do not leak error in ovsdb_server_compact()

Thomas Graf tgraf at redhat.com
Fri Nov 1 16:44:52 UTC 2013


Signed-off-by: Thomas Graf <tgraf at redhat.com>
---
 ovsdb/ovsdb-server.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ovsdb/ovsdb-server.c b/ovsdb/ovsdb-server.c
index ab44b3a..f64122e 100644
--- a/ovsdb/ovsdb-server.c
+++ b/ovsdb/ovsdb-server.c
@@ -983,6 +983,7 @@ ovsdb_server_compact(struct unixctl_conn *conn, int argc,
                 char *s = ovsdb_error_to_string(error);
                 ds_put_format(&reply, "%s\n", s);
                 free(s);
+                ovsdb_error_destroy(error);
             }
 
             n++;
-- 
1.8.3.1




More information about the dev mailing list