X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fofproto.c;h=3768eede02a7db716dfb495cbba04316524034cb;hb=3b917492c68516f113fe3d02cb4ed9885fae6b4d;hp=43054fa335e8465a80b528f18ec137fe9d9edd4e;hpb=72b0630028e94a24d92a7c14cd7bce96a252a3f5;p=openvswitch diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 43054fa3..3768eede 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -1,5 +1,5 @@ /* - * 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. @@ -617,7 +617,7 @@ ofproto_set_rate_limit(struct ofproto *ofproto, } int -ofproto_set_stp(struct ofproto *ofproto UNUSED, bool enable_stp) +ofproto_set_stp(struct ofproto *ofproto OVS_UNUSED, bool enable_stp) { /* XXX */ if (enable_stp) { @@ -759,6 +759,8 @@ ofproto_destroy(struct ofproto *p) mac_learning_destroy(p->ml); + port_array_destroy(&p->ports); + free(p); }