perf tools: Use memdup in map__clone
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 25 Jan 2013 01:16:43 +0000 (22:16 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 25 Jan 2013 15:49:28 +0000 (12:49 -0300)
commit8e16017d497e9bb37c8c3c5ed1edb8d6adeebf3a
treede01880f427373e595529d88e369b9c5c42e0dab
parent237a7e04a1a4461843a998fae78517dbbd08602e
perf tools: Use memdup in map__clone

We have memdup() exactly for that, remove open coded dup.

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-tnsoexrgv6u9l125srq2c7su@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/map.c