ovsdb-idl: Fix memory leak.
authorBen Pfaff <blp@nicira.com>
Fri, 4 Dec 2009 23:06:26 +0000 (15:06 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 4 Dec 2009 23:08:07 +0000 (15:08 -0800)
lib/ovsdb-idl.c

index beed251c1b7258c3163384d590796136cfb89c2a..121cc0eed65eaaa1c75505d93f6289bf41e594ae 100644 (file)
@@ -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;
     }
 }