ofproto-dpif: Fix memory leak in type_run().
authorBen Pfaff <blp@nicira.com>
Tue, 18 Dec 2012 21:17:00 +0000 (13:17 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 18 Dec 2012 23:52:21 +0000 (15:52 -0800)
commit5b5e6a4c7525576ffe44aa9b7e67b3fd49ea2501
tree14162f5be6e6af953cf10acfd76b63845d69e275
parent476cb42a5c638311b84a4015ae8058b536ff467f
ofproto-dpif: Fix memory leak in type_run().

The dpif_port_destroy() call was in the dpif_port_query_by_name() error
path, when there's nothing to destroy, rather than in the "success" path,
where there is data to destroy.

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