From patchwork Tue Jul 17 13:34:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Sitnicki X-Patchwork-Id: 945054 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=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com 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 41VLx168g9z9rxs for ; Tue, 17 Jul 2018 23:39:33 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id AD722D08; Tue, 17 Jul 2018 13:34:37 +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 C7D31CFC for ; Tue, 17 Jul 2018 13:34:35 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 584D3798 for ; Tue, 17 Jul 2018 13:34:35 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id g6-v6so1312793wrp.0 for ; Tue, 17 Jul 2018 06:34:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=K0gJj7icBSaYgDNDVsllrSIsjJo5b4buepzcTBoLecA=; b=tphSGit60eO2GEKRvt6AWFHo1z0qVAkPTZY1Kgb5QKKoPagq8xiN7j7m3+4qn5o7m8 sLyXzx9XU9DFCzSMzbVt/gkAc0fqzrhotI3Qtztthb4bu/Sijf83YLy2q4E5juYKGOEp tHCiFiDjs7oDCQPgHHCf+/dJnPj/HpnwMD6OSAj7hqS/MEDNyb52lcqFnXbkU5lf7TOa gX4SoY5WNxSnp0VBV4OJ053GKhbiBVePnAeEQG9oW3BOsUA+KjTQn/1bsuK/vYOt4oFK up30nVl7Q1MX9muNC6UasZ84off+Dt51RSLAbX6u/fz4CDdF1mZkimb4cCnID0uit7PK CxLg== X-Gm-Message-State: AOUpUlEfka6nqXrYbhsO8TrPhwL/xY3MFWrDe0Wm3AmMRM7xhaIGiHdm 8QkJ7V1sTsZQ75KQ68p2Axa4DUAe4fA= X-Google-Smtp-Source: AAOMgpebRU1F8GYy9UI635M7afyikOjR7eR6Vo8Y2LcXQ5zZx1fEwBVRLhOWUiwZoHm/sh1kz+MbeA== X-Received: by 2002:adf:fb92:: with SMTP id a18-v6mr1384522wrr.278.1531834473859; Tue, 17 Jul 2018 06:34:33 -0700 (PDT) Received: from redhat.com (218.red-2-136-166.dynamicip.rima-tde.net. [2.136.166.218]) by smtp.gmail.com with ESMTPSA id b11-v6sm1644759wrv.82.2018.07.17.06.34.33 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Jul 2018 06:34:33 -0700 (PDT) From: Jakub Sitnicki To: dev@openvswitch.org Date: Tue, 17 Jul 2018 15:34:15 +0200 Message-Id: <20180717133415.23781-12-jkbs@redhat.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180717133415.23781-1-jkbs@redhat.com> References: <20180717133415.23781-1-jkbs@redhat.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH 11/11] ovn-nbctl: Fix mem leak in nbctl_lrp_set_gateway_chassis(). 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 fall-out from applying a semantic patch to propagate the error. Signed-off-by: Jakub Sitnicki --- ovn/utilities/ovn-nbctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ovn/utilities/ovn-nbctl.c b/ovn/utilities/ovn-nbctl.c index 27e3151a8..12845a035 100644 --- a/ovn/utilities/ovn-nbctl.c +++ b/ovn/utilities/ovn-nbctl.c @@ -3473,6 +3473,7 @@ nbctl_lrp_set_gateway_chassis(struct ctl_context *ctx) error = gc_by_name_or_uuid(ctx, gc_name, false, &existing_gc); if (error) { ctx->error = error; + free(gc_name); return; } if (existing_gc) {