projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5d5354
)
ovsdb-data: Free string leaked in ovsdb_datum_from_string().
author
Justin Pettit
<jpettit@nicira.com>
Tue, 22 Feb 2011 00:23:50 +0000
(16:23 -0800)
committer
Justin Pettit
<jpettit@nicira.com>
Tue, 22 Feb 2011 17:36:57 +0000
(09:36 -0800)
Coverity #10725
lib/ovsdb-data.c
patch
|
blob
|
history
diff --git
a/lib/ovsdb-data.c
b/lib/ovsdb-data.c
index 5b91ea0b80cc330c4873a2e3bce9bf712b07facb..c373be9a9e61f0fb17979bf57d87a8f4b01d0d17 100644
(file)
--- 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;
}