From patchwork Thu Oct 22 22:57:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Pettit X-Patchwork-Id: 534633 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 F37AB14131C for ; Fri, 23 Oct 2015 09:58:04 +1100 (AEDT) Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id 91998109CE; Thu, 22 Oct 2015 15:57:55 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx3v1.cudamail.com (mx3.cudamail.com [64.34.241.5]) by archives.nicira.com (Postfix) with ESMTPS id 43DCF109B7 for ; Thu, 22 Oct 2015 15:57:53 -0700 (PDT) Received: from bar3.cudamail.com (bar1 [192.168.15.1]) by mx3v1.cudamail.com (Postfix) with ESMTP id 18C456182F3 for ; Thu, 22 Oct 2015 16:57:40 -0600 (MDT) X-ASG-Debug-ID: 1445554657-03dd7b106c1f43b0001-byXFYA Received: from mx3-pf2.cudamail.com ([192.168.14.1]) by bar3.cudamail.com with ESMTP id L5qVPmG9CGQAaH2Y (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 22 Oct 2015 16:57:37 -0600 (MDT) X-Barracuda-Envelope-From: jpettit@nicira.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.14.1 Received: from unknown (HELO mail-pa0-f42.google.com) (209.85.220.42) by mx3-pf2.cudamail.com with ESMTPS (RC4-SHA encrypted); 22 Oct 2015 22:57:36 -0000 Received-SPF: unknown (mx3-pf2.cudamail.com: Multiple SPF records returned) X-Barracuda-RBL-Trusted-Forwarder: 209.85.220.42 Received: by padhk11 with SMTP id hk11so98847157pad.1 for ; Thu, 22 Oct 2015 15:57:36 -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=crlDbE174v5LrDnCOZhKBZsvQu2iVlHjEDzFfdtumy8=; b=NzU1d25kQ2ozhQkW5H+eFrhRZgoQy6Vyia6QrSgAk/OolO/TWiYvy6t+oU7KlO/Zod 3iU5cIenh4uMfRWFq+/GsHMLeD/DUAHcRmCnRcS4o4QDCfqWauIjmwuu/6tap5L3noT/ 1kFCwE0U40pH8pMHXNzqQUZRTCvFTP2A13Qr5O4iWyoylbmS2x30vyyQShUK46dcQBqf tAPbAv6FJUshoqBBZ3xpucUGTR3OKBpg3khHYJeplsHrqZKDsNJeKkedxqnTNsZup+FL uYoiAezWCtZoxZk33fagHwJmTYG6sBY5mb03KEZXUGaYwgdswH8A+G1985t6tf6J0nAY VAXA== X-Gm-Message-State: ALoCoQk9x4N/0Zd5hL+rJCeB1s+NvT4jMX+xkBssducb/x880HhGFXQgzcCGdHY6c1KYD80cAmNd X-Received: by 10.66.218.198 with SMTP id pi6mr772448pac.139.1445554656783; Thu, 22 Oct 2015 15:57:36 -0700 (PDT) Received: from localhost.localdomain ([208.91.2.4]) by smtp.gmail.com with ESMTPSA id ve8sm15592685pbc.48.2015.10.22.15.57.35 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Oct 2015 15:57:36 -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-V2-1021071253 X-CudaMail-DTE: 102215 X-CudaMail-Originating-IP: 209.85.220.42 Date: Thu, 22 Oct 2015 15:57:26 -0700 X-ASG-Orig-Subj: [##CM-V2-1021071253##][PATCH 2/6] ovsdb-server: Destroy allocated shash. Message-Id: <1445554650-21984-2-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.14.1] X-Barracuda-Start-Time: 1445554657 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 2/6] ovsdb-server: Destroy allocated shash. 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 --- ovsdb/ovsdb-server.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ovsdb/ovsdb-server.c b/ovsdb/ovsdb-server.c index 0c34820..97b65b6 100644 --- a/ovsdb/ovsdb-server.c +++ b/ovsdb/ovsdb-server.c @@ -337,6 +337,7 @@ main(int argc, char *argv[]) close_db(db); shash_delete(&all_dbs, node); } + shash_destroy(&all_dbs); sset_destroy(&remotes); sset_destroy(&db_filenames); unixctl_server_destroy(unixctl);