From a5d5354945b1376c851f8b599f420f65bf076db6 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Mon, 21 Feb 2011 16:06:28 -0800 Subject: [PATCH 1/1] discovery: Free "buffer" in discovery_set_accept_controller_re(). Coverity #10728 --- ofproto/discovery.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2