[ovs-dev] [PATCH] ovsdb: Fix leaked row in ovsdb_execute_wait()

Thomas Graf tgraf at noironetworks.com
Tue Aug 26 22:48:04 UTC 2014


An error returned from ovsdb_row_from_json() currently results in
leaking of row.

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

diff --git a/ovsdb/execution.c b/ovsdb/execution.c
index 7a1db0c..6314757 100644
--- a/ovsdb/execution.c
+++ b/ovsdb/execution.c
@@ -659,6 +659,7 @@ ovsdb_execute_wait(struct ovsdb_execution *x, struct ovsdb_parser *parser,
             error = ovsdb_row_from_json(row, rows->u.array.elems[i], x->symtab,
                                         NULL);
             if (error) {
+                ovsdb_row_destroy(row);
                 break;
             }
 
-- 
1.9.3




More information about the dev mailing list