X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ovsdb%2Fovsdb.c;h=45683766c1c937a4e24dcca013bdd2d61e443e1f;hb=e819fb476255e0b5f9fccb5e9e07691205e1608b;hp=5bbaddbd3810a99a0320af3253027ba40ed397d1;hpb=5f55c39b21e69025045437ffbd3bb98fe6ce2e89;p=openvswitch diff --git a/ovsdb/ovsdb.c b/ovsdb/ovsdb.c index 5bbaddbd..45683766 100644 --- a/ovsdb/ovsdb.c +++ b/ovsdb/ovsdb.c @@ -58,6 +58,10 @@ ovsdb_schema_destroy(struct ovsdb_schema *schema) { struct shash_node *node; + if (!schema) { + return; + } + SHASH_FOR_EACH (node, &schema->tables) { ovsdb_table_schema_destroy(node->data); }