* [PATCH] tools/perf/tests: Fix memory leak in dso-data.c
@ 2013-10-10 2:00 Felipe Pena
2013-10-10 7:15 ` Jiri Olsa
2013-10-15 5:33 ` [tip:perf/core] perf tests: " tip-bot for Felipe Pena
0 siblings, 2 replies; 3+ messages in thread
From: Felipe Pena @ 2013-10-10 2:00 UTC (permalink / raw)
To: Peter Zijlstra, Paul Mackerras, Ingo Molnar,
Arnaldo Carvalho de Melo, Jiri Olsa
Cc: linux-kernel, Felipe Pena
Fix for a memory leak on test_file() function in dso-data.c
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] tools/perf/tests: Fix memory leak in dso-data.c
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
2013-10-15 5:33 ` [tip:perf/core] perf tests: " tip-bot for Felipe Pena
1 sibling, 0 replies; 3+ messages in thread
From: Jiri Olsa @ 2013-10-10 7:15 UTC (permalink / raw)
To: Felipe Pena
Cc: Peter Zijlstra, Paul Mackerras, Ingo Molnar,
Arnaldo Carvalho de Melo, linux-kernel
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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip:perf/core] perf tests: Fix memory leak in dso-data.c
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
@ 2013-10-15 5:33 ` tip-bot for Felipe Pena
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Felipe Pena @ 2013-10-15 5:33 UTC (permalink / raw)
To: linux-tip-commits
Cc: acme, linux-kernel, paulus, mingo, hpa, mingo, a.p.zijlstra,
jolsa, felipensp, tglx
Commit-ID: 1df9297c8535a5bb2b776381e63d8334f87d4abe
Gitweb: http://git.kernel.org/tip/1df9297c8535a5bb2b776381e63d8334f87d4abe
Author: Felipe Pena <felipensp@gmail.com>
AuthorDate: Wed, 9 Oct 2013 23:00:38 -0300
Committer: Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Mon, 14 Oct 2013 10:28:54 -0300
perf tests: Fix memory leak in dso-data.c
Fix for a memory leak on test_file() function in dso-data.c.
Signed-off-by: Felipe Pena <felipensp@gmail.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1381370438-4209-1-git-send-email-felipensp@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.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;
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-15 5:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2013-10-15 5:33 ` [tip:perf/core] perf tests: " tip-bot for Felipe Pena
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.