mmap.c (backtrace_vector_release): Correct last patch: add aligned, not size.

* mmap.c (backtrace_vector_release): Correct last patch: add
	aligned, not size.

From-SVN: r192956
This commit is contained in:
Ian Lance Taylor 2012-10-29 18:42:05 +00:00 committed by Ian Lance Taylor
parent a5bc806c95
commit 8fe91dea4f
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-10-29 Ian Lance Taylor <iant@google.com>
* mmap.c (backtrace_vector_release): Correct last patch: add
aligned, not size.
2012-10-29 Ian Lance Taylor <iant@google.com>
* mmap.c (backtrace_vector_release): Make sure freed block is

View File

@ -240,7 +240,8 @@ backtrace_vector_release (struct backtrace_state *state,
aligned = (size + 7) & ~ (size_t) 7;
alc -= aligned - size;
backtrace_free (state, (char *) vec->base + size, alc, error_callback, data);
backtrace_free (state, (char *) vec->base + aligned, alc,
error_callback, data);
vec->alc = 0;
return 1;
}