ovsdb: Do not leak error in ovsdb_server_compact()
authorThomas Graf <tgraf@redhat.com>
Fri, 1 Nov 2013 16:44:52 +0000 (17:44 +0100)
committerBen Pfaff <blp@nicira.com>
Fri, 1 Nov 2013 17:05:23 +0000 (10:05 -0700)
Signed-off-by: Thomas Graf <tgraf@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ovsdb/ovsdb-server.c

index ab44b3a..f64122e 100644 (file)
@@ -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++;