From: Ben Pfaff Date: Fri, 4 Dec 2009 23:06:26 +0000 (-0800) Subject: ovsdb-idl: Fix memory leak. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ecd4b03dd8056b8c69058d2dbf50a7eb4cacd60;p=openvswitch ovsdb-idl: Fix memory leak. --- diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c index beed251c..121cc0ee 100644 --- a/lib/ovsdb-idl.c +++ b/lib/ovsdb-idl.c @@ -497,6 +497,7 @@ ovsdb_idl_row_clear_fields(struct ovsdb_idl_row *row) for (i = 0; i < class->n_columns; i++) { ovsdb_datum_destroy(&row->fields[i], &class->columns[i].type); } + free(row->fields); row->fields = NULL; } }