Re: [PATCH] tools perf: set vmlinux_path__nr_entries to 0 in vmlinux_path__exit.

2015-05-14 Thread Namhyung Kim
Hello, On Thu, May 14, 2015 at 12:22:30PM +, Wang Nan wrote: > Original vmlinux_path__exit() doesn't revert vmlinux_path__nr_entries > to its original state. After the while loop vmlinux_path__nr_entries > becomes -1 instead of 0. This makes a problem that, if runs twice, > during the second r

[PATCH] tools perf: set vmlinux_path__nr_entries to 0 in vmlinux_path__exit.

2015-05-14 Thread Wang Nan
Original vmlinux_path__exit() doesn't revert vmlinux_path__nr_entries to its original state. After the while loop vmlinux_path__nr_entries becomes -1 instead of 0. This makes a problem that, if runs twice, during the second run vmlinux_path__init() will set vmlinux_path[-1] to strdup("vmlinux"), co