diff options
author | Ben Pfaff <blp@nicira.com> | 2010-02-02 14:40:25 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-02-02 15:21:09 -0800 |
commit | e084f69017bc840cd7aed4cc9ed2e13f3fb6747e (patch) | |
tree | ae74e48e87a0d5cd88fecffff381f714278e84e4 /ovsdb/ovsdb.c | |
parent | 65f92a50690e6f1dddbc11e95db7301343f1c018 (diff) | |
download | openvswitch-e084f69017bc840cd7aed4cc9ed2e13f3fb6747e.tar.gz |
ovsdb-server: Fix various memory leaks.
Some of these are serious leaks, in that they could leak some amount of
memory for every transaction processed by the database server.
Found with valgrind.
Diffstat (limited to 'ovsdb/ovsdb.c')
-rw-r--r-- | ovsdb/ovsdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ovsdb/ovsdb.c b/ovsdb/ovsdb.c index 27254e633..e95d23c41 100644 --- 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. @@ -68,8 +68,8 @@ ovsdb_schema_from_file(const char *file_name, struct ovsdb_schema **schemap) } error = ovsdb_schema_from_json(json, &schema); + json_destroy(json); if (error) { - json_destroy(json); return ovsdb_wrap_error(error, "failed to parse \"%s\" as ovsdb schema", file_name); |