From: Justin Pettit Date: Tue, 22 Feb 2011 00:23:50 +0000 (-0800) Subject: ovsdb-data: Free string leaked in ovsdb_datum_from_string(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9466d7d4b9388f276a99506d9d8a4eca84fb509f;p=openvswitch ovsdb-data: Free string leaked in ovsdb_datum_from_string(). Coverity #10725 --- diff --git a/lib/ovsdb-data.c b/lib/ovsdb-data.c index 5b91ea0b..c373be9a 100644 --- a/lib/ovsdb-data.c +++ b/lib/ovsdb-data.c @@ -1367,8 +1367,10 @@ ovsdb_datum_from_string(struct ovsdb_datum *datum, union ovsdb_atom key, value; if (ovsdb_token_is_delim(*p)) { + char *type_str = ovsdb_type_to_english(type); error = xasprintf("%s: unexpected \"%c\" parsing %s", - s, *p, ovsdb_type_to_english(type)); + s, *p, type_str); + free(type_str); goto error; }