From patchwork Mon Sep 25 05:24:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: xurong00037997 X-Patchwork-Id: 818046 X-Patchwork-Delegate: rbryant@redhat.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3y0t3j71vCz9t4Z for ; Mon, 25 Sep 2017 15:31:12 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id D717A87A; Mon, 25 Sep 2017 05:31:08 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 53FF72C for ; Mon, 25 Sep 2017 05:31:07 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mxct.zte.com.cn (out1.zte.com.cn [202.103.147.172]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 23AF3157 for ; Mon, 25 Sep 2017 05:31:05 +0000 (UTC) Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id 404F97F573DF9F26B727 for ; Mon, 25 Sep 2017 13:31:03 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id v8P5UrU4098241 for ; Mon, 25 Sep 2017 13:30:53 +0800 (GMT-8) (envelope-from xu.rong@zte.com.cn) Received: from tecs152.localdomain ([10.43.166.152]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2017092513305548-3289421 ; Mon, 25 Sep 2017 13:30:55 +0800 From: 00037997 To: dev@openvswitch.org Date: Mon, 25 Sep 2017 13:24:16 +0800 Message-Id: <1506317056-13394-1-git-send-email-xu.rong@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2017-09-25 13:30:55, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2017-09-25 13:30:53, Serialize complete at 2017-09-25 13:30:53 X-MAIL: mse01.zte.com.cn v8P5UrU4098241 X-Spam-Status: No, score=-0.0 required=5.0 tests=RP_MATCHES_RCVD autolearn=disabled version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: 00037997 Subject: [ovs-dev] [PATCH] ovn-controller: pending_ct_zones should be destroyed X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org pending_ct_zones in ovn-controller main should be destroyed when exit. Signed-off-by: xu rong Acked-by: Miguel Angel Ajo --- ovn/controller/ovn-controller.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ovn/controller/ovn-controller.c b/ovn/controller/ovn-controller.c index a935a79..32cdc9f 100644 --- a/ovn/controller/ovn-controller.c +++ b/ovn/controller/ovn-controller.c @@ -843,6 +843,7 @@ main(int argc, char *argv[]) pinctrl_destroy(); simap_destroy(&ct_zones); + shash_destroy(&pending_ct_zones); bitmap_free(group_table.group_ids); hmap_destroy(&group_table.desired_groups);