summaryrefslogtreecommitdiff
path: root/ofproto
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2011-02-21 16:04:55 -0800
committerJustin Pettit <jpettit@nicira.com>2011-02-22 09:36:57 -0800
commiteaf9d084a592c53b390597b9ca276c3836bcf7dc (patch)
tree8d7c5be98e42fd516f9ebe1e0e7379ce1072f120 /ofproto
parent05edc34ca119606f349c6557f2fbe682861ab3d8 (diff)
downloadopenvswitch-eaf9d084a592c53b390597b9ca276c3836bcf7dc.tar.gz
ofproto: Free "controller_name" in ofconn_run().
Coverity #10729
Diffstat (limited to 'ofproto')
-rw-r--r--ofproto/ofproto.c1
1 files changed, 1 insertions, 0 deletions
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);
}