From patchwork Thu Oct 22 01:06:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Pettit X-Patchwork-Id: 534150 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (li376-54.members.linode.com [96.126.127.54]) by ozlabs.org (Postfix) with ESMTP id 1A00F141319 for ; Thu, 22 Oct 2015 12:06:28 +1100 (AEDT) Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id ACD5010630; Wed, 21 Oct 2015 18:06:26 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx1e3.cudamail.com (mx1.cudamail.com [69.90.118.67]) by archives.nicira.com (Postfix) with ESMTPS id 08B5110629 for ; Wed, 21 Oct 2015 18:06:25 -0700 (PDT) Received: from bar5.cudamail.com (localhost [127.0.0.1]) by mx1e3.cudamail.com (Postfix) with ESMTPS id D220D420096 for ; Wed, 21 Oct 2015 19:06:23 -0600 (MDT) X-ASG-Debug-ID: 1445475982-09eadd4c90106280001-byXFYA Received: from mx1-pf2.cudamail.com ([192.168.24.2]) by bar5.cudamail.com with ESMTP id PkPThF9GEPDynqA0 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 21 Oct 2015 19:06:22 -0600 (MDT) X-Barracuda-Envelope-From: jpettit@nicira.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.24.2 Received: from unknown (HELO mail-pa0-f52.google.com) (209.85.220.52) by mx1-pf2.cudamail.com with ESMTPS (RC4-SHA encrypted); 22 Oct 2015 01:06:22 -0000 Received-SPF: unknown (mx1-pf2.cudamail.com: Multiple SPF records returned) X-Barracuda-RBL-Trusted-Forwarder: 209.85.220.52 Received: by pabrc13 with SMTP id rc13so70149509pab.0 for ; Wed, 21 Oct 2015 18:06:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=ri1EHXJwL2lxlKGDbvfuY07PfBghwdA4iqhAInS0UMs=; b=Nlsi6/nEyvCEU4MLdrc6jdM0rUNEN/+7Gnrj81/XzCOxO8MI+QCZvsimdxF+qG8CMA 3RVEvpFEmyIZREgGdkKgDMPTfh5YEtInYzNoXYv81JnEkohSP9qgVANy1DYK6C77TZSJ ZaVnbIgWW92VDCcsyOv1phq1I+QjYfKd83qDanbt+h2pcQSD5Pd92VoY5mSF5F7Nm6Qn OBnvnwGjFXNcC/kmnqJ8d0uiSrB3gA23Dzgz9Y5Nl0rC5YBBXmsOMppq+3/zeY1DqQHv 8Pv32tOABW9onlBMA5l/5cSDZxb1gVL1k0T+zRCRiawuNNvbG0NKRpGj5ap4jph6xEfT HHkw== X-Gm-Message-State: ALoCoQl2UNDgGP7xoGNlCdurqelgA4fhu2m0sBFtVSGEjQeeEKc4oUVhWFdj2X2+6xy1m/+AQAf8 X-Received: by 10.68.102.2 with SMTP id fk2mr13848008pbb.129.1445475981795; Wed, 21 Oct 2015 18:06:21 -0700 (PDT) Received: from localhost.localdomain ([208.91.2.4]) by smtp.gmail.com with ESMTPSA id u3sm11286121pbs.33.2015.10.21.18.06.20 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Oct 2015 18:06:20 -0700 (PDT) X-CudaMail-Envelope-Sender: jpettit@nicira.com X-Barracuda-Apparent-Source-IP: 208.91.2.4 From: Justin Pettit To: dev@openvswitch.org X-CudaMail-Whitelist-To: dev@openvswitch.org X-CudaMail-MID: CM-E2-1020112198 X-CudaMail-DTE: 102115 X-CudaMail-Originating-IP: 209.85.220.52 Date: Wed, 21 Oct 2015 18:06:16 -0700 X-ASG-Orig-Subj: [##CM-E2-1020112198##][PATCH] ovn-northd: Fix memory leak in logical router flow generation. Message-Id: <1445475976-29130-1-git-send-email-jpettit@nicira.com> X-Mailer: git-send-email 1.7.5.4 X-Barracuda-Connect: UNKNOWN[192.168.24.2] X-Barracuda-Start-Time: 1445475982 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-ASG-Whitelist: Header =?UTF-8?B?eFwtY3VkYW1haWxcLXdoaXRlbGlzdFwtdG8=?= X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 Subject: [ovs-dev] [PATCH] ovn-northd: Fix memory leak in logical router flow generation. X-BeenThere: dev@openvswitch.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dev-bounces@openvswitch.org Sender: "dev" Signed-off-by: Justin Pettit Acked-by: Russell Bryant --- ovn/northd/ovn-northd.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ovn/northd/ovn-northd.c b/ovn/northd/ovn-northd.c index e199937..282f8ae 100644 --- a/ovn/northd/ovn-northd.c +++ b/ovn/northd/ovn-northd.c @@ -1328,6 +1328,7 @@ build_lrouter_flows(struct hmap *datapaths, struct hmap *ports, ETH_ADDR_ARGS(op->mac), op->json_key); ovn_lflow_add(lflows, op->od, S_ROUTER_IN_ADMISSION, 50, match, "next;"); + free(match); } /* Logical router ingress table 1: IP Input. */