From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752130AbbF3IP4 (ORCPT ); Tue, 30 Jun 2015 04:15:56 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:34636 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750708AbbF3IPp (ORCPT ); Tue, 30 Jun 2015 04:15:45 -0400 From: Taeung Song To: Arnaldo Carvalho de Melo Cc: linux-kernel@vger.kernel.org, jolsa@redhat.com, namhyung@kernel.org, Ingo Molnar , Taeung Song Subject: [PATCH 0/5] perf session: Fill in the missing freeing a session after an error occur Date: Tue, 30 Jun 2015 17:15:19 +0900 Message-Id: <1435652124-22414-1-git-send-email-treeze.taeung@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In some cases some sessions aren't freed. For example, a session is allocated and then if an error occur, just a error value is returned without freeing the session. So allocating and freeing session have to be matched as a pair even if an error occur. Taeung Song (5): perf inject: Fill in the missing freeing a session after an error occur perf kmem: Fill in the missing freeing a session after an error occur perf kvm: Fill in the missing freeing a session after an error occur perf mem: Fill in the missing freeing a session after an error occur perf report: Fill in the missing freeing a session after an error occur tools/perf/builtin-inject.c | 7 ++++--- tools/perf/builtin-kmem.c | 4 ++-- tools/perf/builtin-kvm.c | 16 ++++++++++++---- tools/perf/builtin-mem.c | 17 ++++++++++------- tools/perf/builtin-report.c | 6 ++++-- 5 files changed, 32 insertions(+), 18 deletions(-) -- 1.9.1