From: Justin Pettit Date: Tue, 22 Feb 2011 18:43:00 +0000 (-0800) Subject: table: Free "error" in cell_to_text(). X-Git-Tag: v1.1.0~239 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=84ba64b96410c8b87611ec000b9e2d29dfeb06d9;p=sliver-openvswitch.git table: Free "error" in cell_to_text(). Coverity #10722 --- diff --git a/lib/table.c b/lib/table.c index 86366d0dc..ff11e7816 100644 --- a/lib/table.c +++ b/lib/table.c @@ -23,6 +23,7 @@ #include "dynamic-string.h" #include "json.h" #include "ovsdb-data.h" +#include "ovsdb-error.h" #include "util.h" struct column { @@ -54,6 +55,7 @@ cell_to_text(struct cell *cell, const struct table_style *style) cell->text = ds_steal_cstr(&s); } else { cell->text = json_to_string(cell->json, JSSF_SORT); + ovsdb_error_destroy(error); } } } else {