ofproto: Free "controller_name" in ofconn_run().
authorJustin Pettit <jpettit@nicira.com>
Tue, 22 Feb 2011 00:04:55 +0000 (16:04 -0800)
committerJustin Pettit <jpettit@nicira.com>
Tue, 22 Feb 2011 17:36:57 +0000 (09:36 -0800)
Coverity #10729

ofproto/ofproto.c

index c6008c7a8ec114389a5f8e893fd54956bdbee791..8af18145b671de8743b024a8a7bdca87d1096caa 100644 (file)
@@ -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);
             }