From: Justin Pettit Date: Tue, 22 Feb 2011 00:04:55 +0000 (-0800) Subject: ofproto: Free "controller_name" in ofconn_run(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaf9d084a592c53b390597b9ca276c3836bcf7dc;hp=05edc34ca119606f349c6557f2fbe682861ab3d8;p=openvswitch ofproto: Free "controller_name" in ofconn_run(). Coverity #10729 --- diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index c6008c7a..8af18145 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); }