tools/perf/tests: Fix memory leak in dso-data.c
PATCH 1/1 tools/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 <[email protected]>
--- tools/perf/tests/dso-data.c | 1 + 1 file changed, 1 insertion(+)
tools/perf/tests/dso-data.c +1 -0
@@ -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
Quoted 1 line · Felipe Pena
Fix for a memory leak on
test_file()function indso-data.c
oops, thanks ;-)
Acked-by Jiri Olsa <[email protected]>
Quoted 21 lines
Signed-off-by Felipe Pena <[email protected]>--- tools/perf/tests/dso-data.c | 1 + 1 file changed, 1 insertion(+)tools/perf/tests/dso-data.c +1
-1@@ -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
tip-bot for Felipe Pena
merge bot[tip:perf/core] perf tests: Fix memory leak in dso-data.c
In reply to Felipe Penaperf tests: Fix memory leak in dso-data.c
Commit-ID: 1df9297c8535a5bb2b776381e63d8334f87d4abe Gitweb: http://git.kernel.org/tip/1df9297c8535a5bb2b776381e63d8334f87d4abe Author: Felipe Pena <[email protected]> AuthorDate: Wed, 9 Oct 2013 23:00:38 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> 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 <[email protected]>
Acked-by Jiri Olsa <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/tests/dso-data.c | 1 + 1 file changed, 1 insertion(+)
tools/perf/tests/dso-data.c +1 -0
@@ -35,6 +35,7 @@ static char *test_file(int size)if (size !=write (fd, buf, size)) templ =NULL ; +free (buf);close (fd);return templ; }