From: Justin Pettit Date: Tue, 22 Feb 2011 00:06:28 +0000 (-0800) Subject: discovery: Free "buffer" in discovery_set_accept_controller_re(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5d5354945b1376c851f8b599f420f65bf076db6;p=openvswitch discovery: Free "buffer" in discovery_set_accept_controller_re(). Coverity #10728 --- diff --git a/ofproto/discovery.c b/ofproto/discovery.c index 1c39e2ae..37d32e43 100644 --- a/ofproto/discovery.c +++ b/ofproto/discovery.c @@ -198,6 +198,7 @@ discovery_set_accept_controller_re(struct discovery *d, const char *re_) char *buffer = xmalloc(length); regerror(error, regex, buffer, length); VLOG_WARN("%s: %s: %s", d->dpif_name, re, buffer); + free(buffer); free(regex); free(re); return EINVAL;