public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jiri Olsa <jolsa@redhat.com>
To: Felipe Pena <felipensp@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>,
	Paul Mackerras <paulus@samba.org>, Ingo Molnar <mingo@redhat.com>,
	Arnaldo Carvalho de Melo <acme@ghostprotocols.net>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] tools/perf/tests: Fix memory leak in dso-data.c
Date: Thu, 10 Oct 2013 09:15:06 +0200	[thread overview]
Message-ID: <20131010071506.GA7997@krava.redhat.com> (raw)
In-Reply-To: <1381370438-4209-1-git-send-email-felipensp@gmail.com>

On Wed, Oct 09, 2013 at 11:00:38PM -0300, Felipe Pena wrote:
> Fix for a memory leak on test_file() function in dso-data.c

oops, thanks ;-)

Acked-by: Jiri Olsa <jolsa@redhat.com>

> 
> Signed-off-by: Felipe Pena <felipensp@gmail.com>
> ---
>  tools/perf/tests/dso-data.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tools/perf/tests/dso-data.c b/tools/perf/tests/dso-data.c
> index dffe055..9cc81a3 100644
> --- a/tools/perf/tests/dso-data.c
> +++ b/tools/perf/tests/dso-data.c
> @@ -35,6 +35,7 @@ static char *test_file(int size)
>  	if (size != write(fd, buf, size))
>  		templ = NULL;
> 
> +	free(buf);
>  	close(fd);
>  	return templ;
>  }
> --
> 1.7.10.4
> 

  reply	other threads:[~2013-10-10  7:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-10  2:00 [PATCH] tools/perf/tests: Fix memory leak in dso-data.c Felipe Pena
2013-10-10  7:15 ` Jiri Olsa [this message]
2013-10-15  5:33 ` [tip:perf/core] perf tests: " tip-bot for Felipe Pena

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131010071506.GA7997@krava.redhat.com \
    --to=jolsa@redhat.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=acme@ghostprotocols.net \
    --cc=felipensp@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=paulus@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox