diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-29 18:42:05 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-29 18:42:05 +0000 |
commit | bccc33a36b26d50bafa793a3dc5f70a65bfc1cfe (patch) | |
tree | 5d7b3daa9514bd03852cfb4be41ff8fb53656041 /libbacktrace/mmap.c | |
parent | c844530e0d28251021859d69e2765ddbdba8c8a4 (diff) | |
download | gcc-bccc33a36b26d50bafa793a3dc5f70a65bfc1cfe.tar.gz |
* mmap.c (backtrace_vector_release): Correct last patch: add
aligned, not size.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192956 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libbacktrace/mmap.c')
-rw-r--r-- | libbacktrace/mmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbacktrace/mmap.c b/libbacktrace/mmap.c index 25fdc21a9f7..d3313c7cf1e 100644 --- a/libbacktrace/mmap.c +++ b/libbacktrace/mmap.c @@ -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; } |