From patchwork Thu Oct 22 22:57:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Pettit X-Patchwork-Id: 534631 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (unknown [IPv6:2600:3c00::f03c:91ff:fe6e:bdf7]) by ozlabs.org (Postfix) with ESMTP id 6694314131C for ; Fri, 23 Oct 2015 09:57:48 +1100 (AEDT) Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id AE07710991; Thu, 22 Oct 2015 15:57:43 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx1e4.cudamail.com (mx1.cudamail.com [69.90.118.67]) by archives.nicira.com (Postfix) with ESMTPS id E9D67108F5 for ; Thu, 22 Oct 2015 15:57:41 -0700 (PDT) Received: from bar5.cudamail.com (unknown [192.168.21.12]) by mx1e4.cudamail.com (Postfix) with ESMTPS id 5BF091E0251 for ; Thu, 22 Oct 2015 16:57:41 -0600 (MDT) X-ASG-Debug-ID: 1445554660-09eadd4c9319d6e0001-byXFYA Received: from mx1-pf2.cudamail.com ([192.168.24.2]) by bar5.cudamail.com with ESMTP id ixFnQ3CrA3bl3DAj (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 22 Oct 2015 16:57:40 -0600 (MDT) X-Barracuda-Envelope-From: jpettit@nicira.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.24.2 Received: from unknown (HELO mail-pa0-f44.google.com) (209.85.220.44) by mx1-pf2.cudamail.com with ESMTPS (RC4-SHA encrypted); 22 Oct 2015 22:57:40 -0000 Received-SPF: unknown (mx1-pf2.cudamail.com: Multiple SPF records returned) X-Barracuda-RBL-Trusted-Forwarder: 209.85.220.44 Received: by padhk11 with SMTP id hk11so98848048pad.1 for ; Thu, 22 Oct 2015 15:57:39 -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:in-reply-to :references; bh=EqQzQwXDIeXQYFafGlL92r5qLcqM0e6msdZfB92CABk=; b=SbCGhzwlsV9y+b57bxygAfwR6cUVKXDh+tvEylHnNNsJR6D3ynYbB5hlnJD4Tx/GEk 3NVpLzzqSLTNZ/IrNCJYHXgF5o9QUDDdrVVaVDBv++NvIIX4tIKhCTxQCzhGXa25YnBF /SKZZVdO545OEASsF2l72OLWT1O7AlTbitj7onecQ7hBHwAxtuPc1VacrKbL3Q/08jF1 2xo6x4E67dl8PNlYuPXco+RaQ1xAnMTkGtVpHT+lL8k7OgIr0WxkYF0YDF1a3rKnyk1L TcTyb7iL+/T8DHkoY9O2KCFmcYPFiSLpwH8RZPAUg9Mdb/Q879tjiNXQTb1fvLX4uy9a Qx4g== X-Gm-Message-State: ALoCoQkLfYjnL9qwYURFih5+y69YV1LsMjkfyGePGr56kREsTYt03d4/TCnSsZSwZapupHaUI2hT X-Received: by 10.66.102.7 with SMTP id fk7mr783026pab.119.1445554659249; Thu, 22 Oct 2015 15:57:39 -0700 (PDT) Received: from localhost.localdomain ([208.91.2.4]) by smtp.gmail.com with ESMTPSA id ve8sm15592685pbc.48.2015.10.22.15.57.38 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Oct 2015 15:57:38 -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-1021108293 X-CudaMail-DTE: 102215 X-CudaMail-Originating-IP: 209.85.220.44 Date: Thu, 22 Oct 2015 15:57:29 -0700 X-ASG-Orig-Subj: [##CM-E2-1021108293##][PATCH 5/6] test-ovn: Fix memory leak in option processing. Message-Id: <1445554650-21984-5-git-send-email-jpettit@nicira.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1445554650-21984-1-git-send-email-jpettit@nicira.com> References: <1445554650-21984-1-git-send-email-jpettit@nicira.com> X-Barracuda-Connect: UNKNOWN[192.168.24.2] X-Barracuda-Start-Time: 1445554660 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 5/6] test-ovn: Fix memory leak in option processing. 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: Andy Zhou --- tests/test-ovn.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tests/test-ovn.c b/tests/test-ovn.c index 47a2b0a..7c1fc13 100644 --- a/tests/test-ovn.c +++ b/tests/test-ovn.c @@ -1430,6 +1430,7 @@ test_ovn_main(int argc, char *argv[]) abort(); } } + free(short_options); static const struct ovs_cmdl_command commands[] = { /* Lexer. */