From patchwork Fri Apr 7 21:43:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yi-Hung Wei X-Patchwork-Id: 748480 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 3w0Cng1hw4z9s7j for ; Sat, 8 Apr 2017 07:46:15 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="TWJnFk+5"; dkim-atps=neutral Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id B0DC7B68; Fri, 7 Apr 2017 21:44:11 +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 81D41B65 for ; Fri, 7 Apr 2017 21:44:10 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 552E315E for ; Fri, 7 Apr 2017 21:44:10 +0000 (UTC) Received: by mail-pg0-f67.google.com with SMTP id 79so17987715pgf.0 for ; Fri, 07 Apr 2017 14:44:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3MexTB7ZztNb+OrvEzKASwMiTSO3QIAV2iuTQ5cHQuo=; b=TWJnFk+5M8n5FP8gmemwRHAz/nKd5LcFrKtW6ziovvE/hSkF8+kNy8xvZlhztnqejU quV/+g+dtM58cWLZUSVirfAkaUeJWgVtMo0KBmPPLLrj9GeqBtIkCVl4lWL+vo33HfHj ZpFynl2BbppNPTMPpUV++TJX+DAssXVdZUWlLexX4c6mTA3+0rwoY0APfXUzULrzXI5B zPjoxW44zM1rtpBcI76J/TXUJbKI9LDQzWB1LNn3mmtu1uHR1Y5aqG0Nr5gtWfIzyiJ7 pAg+HjXMVZtMbpwLvBj9iNOl23wWrz7yJA3r4nfk+u5TorPJcF2l/XPe3TLMzCv89h9K KWIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3MexTB7ZztNb+OrvEzKASwMiTSO3QIAV2iuTQ5cHQuo=; b=P3tJ+49I/HP+X9wNkf/YN8AyUWFkdmq8my0axdO0lCX1mSD1FSIi3BgkZUT69ZytdE WJpI9ZP7mnl9+Z5yGex3iry1iemrAnJpggt1GfeYQLkiMHsZWWxA77kv/mxJmFh3kgtb 0jdLXLpw+hN1fiPUMFGDgvgEV0BBG0beZqI000ZUP5hoWEvI0QmenNsTSvV+k9iyJwbz ainDWmYWLbYQ1dW8ESzjysm8n1Ue5k4QnnImWYrKC45yMLqonCnsI9uFIrn7CLNUA7LX c01UdYH7fEqmMEA5YzeWiB1PVIFim7KHk1vflTODLHYaLpNqto3gk03CjeqYmEp7ZTmO XnxA== X-Gm-Message-State: AFeK/H19DXO7Htt6SfaeuCeoky4/wtdqLhok17jVd6I15+uJ3Avm3FqGhZ3lhSu5wKZF1g== X-Received: by 10.84.174.131 with SMTP id r3mr52862262plb.136.1491601449875; Fri, 07 Apr 2017 14:44:09 -0700 (PDT) Received: from sc9-mailhost3.vmware.com ([208.91.1.34]) by smtp.gmail.com with ESMTPSA id p68sm11305044pga.6.2017.04.07.14.44.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Apr 2017 14:44:09 -0700 (PDT) From: Yi-Hung Wei To: dev@openvswitch.org Date: Fri, 7 Apr 2017 14:43:43 -0700 Message-Id: <1491601426-77274-5-git-send-email-yihung.wei@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1491601426-77274-1-git-send-email-yihung.wei@gmail.com> References: <1491601426-77274-1-git-send-email-yihung.wei@gmail.com> X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH 5/8] tests-ovsdb: Fix memory leak 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 Fix memory leaks reported by valgrind. Signed-off-by: Yi-Hung Wei --- tests/test-ovsdb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test-ovsdb.c b/tests/test-ovsdb.c index 09e4f0daa0db..0f2101e57567 100644 --- a/tests/test-ovsdb.c +++ b/tests/test-ovsdb.c @@ -2529,6 +2529,7 @@ do_idl_partial_update_map_column(struct ovs_cmdl_context *ctx) printf("%03d: After trying to delete a deleted element\n", step++); dump_simple2(idl, myRow, step++); + ovsdb_idl_destroy(idl); printf("%03d: End test\n", step); return; } @@ -2648,6 +2649,7 @@ do_idl_partial_update_set_column(struct ovs_cmdl_context *ctx) ovsdb_idl_get_initial_snapshot(idl); printf("%03d: After add to other table + set of strong ref\n", step++); dump_simple3(idl, myRow, step++); + ovsdb_idl_destroy(idl); printf("%03d: End test\n", step); return; }