From patchwork Sun Apr 10 23:22:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 65439 Delivered-To: patch@linaro.org Received: by 10.112.43.237 with SMTP id z13csp1175074lbl; Sun, 10 Apr 2016 16:27:35 -0700 (PDT) X-Received: by 10.141.0.8 with SMTP id b8mr25368101qhd.104.1460330855598; Sun, 10 Apr 2016 16:27:35 -0700 (PDT) Return-Path: Received: from mx6-phx2.redhat.com (mx6-phx2.redhat.com. [209.132.183.39]) by mx.google.com with ESMTPS id 199si18062529qhy.116.2016.04.10.16.27.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Apr 2016 16:27:35 -0700 (PDT) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.39 as permitted sender) client-ip=209.132.183.39; Authentication-Results: mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.39 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx6-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u3ANMFFe041419; Sun, 10 Apr 2016 19:22:16 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u3ANMECF008443 for ; Sun, 10 Apr 2016 19:22:14 -0400 Received: from colepc.redhat.com (ovpn-113-40.phx2.redhat.com [10.3.113.40]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u3ANMDsf026004; Sun, 10 Apr 2016 19:22:14 -0400 From: Cole Robinson To: libvirt-list@redhat.com Date: Sun, 10 Apr 2016 19:22:10 -0400 Message-Id: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] virtlogd: Fix a couple minor memory leaks X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1303885 --- src/logging/log_daemon.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list diff --git a/src/logging/log_daemon.c b/src/logging/log_daemon.c index 68f0647..f674cbd 100644 --- a/src/logging/log_daemon.c +++ b/src/logging/log_daemon.c @@ -1212,6 +1212,8 @@ int main(int argc, char **argv) { VIR_FREE(sock_file); VIR_FREE(state_file); VIR_FREE(run_dir); + VIR_FREE(remote_config_file); + virLogDaemonConfigFree(config); return ret; no_memory: