ofproto-dpif: Fix memory leak in port_dump_next().
authorBen Pfaff <blp@nicira.com>
Thu, 31 Jan 2013 23:53:23 +0000 (15:53 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 31 Jan 2013 23:53:23 +0000 (15:53 -0800)
commitda78d43d752dbd438236bb11ca440c9c31896393
treec38209203c08168fbd27db4beb0de5a6e57e13eb
parent12b7916089bddfd8f55232f005863b255956e275
ofproto-dpif: Fix memory leak in port_dump_next().

The caller of port_query_by_name() is responsible for freeing the
ofproto_port that it returns on success, but ofproto-dpif did not do this.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto-dpif.c