From: Justin Pettit Date: Tue, 22 Feb 2011 00:04:55 +0000 (-0800) Subject: ofproto: Free "controller_name" in ofconn_run(). X-Git-Tag: v1.1.0~256 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=eaf9d084a592c53b390597b9ca276c3836bcf7dc;p=sliver-openvswitch.git ofproto: Free "controller_name" in ofconn_run(). Coverity #10729 --- diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index c6008c7a8..8af18145b 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -1857,6 +1857,7 @@ ofconn_run(struct ofconn *ofconn) char *ofconn_name = ofconn_make_name(p, controller_name); rconn_connect(ofconn->rconn, controller_name, ofconn_name); free(ofconn_name); + free(controller_name); } else { rconn_disconnect(ofconn->rconn); }