projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ovs-vsctl: Fix memory leaks.
[openvswitch]
/
ovsdb
/
ovsdb.c
diff --git
a/ovsdb/ovsdb.c
b/ovsdb/ovsdb.c
index 27254e633e2e38867212e2d26f45b25cbf13a342..e95d23c415f608b88677064756c1c75096ec76e5 100644
(file)
--- a/
ovsdb/ovsdb.c
+++ b/
ovsdb/ovsdb.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2009 Nicira Networks
+/* Copyright (c) 2009
, 2010
Nicira Networks
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-68,8
+68,8
@@
ovsdb_schema_from_file(const char *file_name, struct ovsdb_schema **schemap)
}
error = ovsdb_schema_from_json(json, &schema);
}
error = ovsdb_schema_from_json(json, &schema);
+ json_destroy(json);
if (error) {
if (error) {
- json_destroy(json);
return ovsdb_wrap_error(error,
"failed to parse \"%s\" as ovsdb schema",
file_name);
return ovsdb_wrap_error(error,
"failed to parse \"%s\" as ovsdb schema",
file_name);