backtrace.c (backtrace_full): When testing whether we can allocate memory...
authorIan Lance Taylor <iant@golang.org>
Tue, 17 Apr 2018 13:59:38 +0000 (13:59 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 17 Apr 2018 13:59:38 +0000 (13:59 +0000)
commit83a658ca0b5164509f86a2b674192e50a934c6db
treedbceef94aeb346b1a317fc802cf86815e747eaa6
parent50ffe7adc0d686e9f193c4e53ea2f0d617309f35
backtrace.c (backtrace_full): When testing whether we can allocate memory...

* backtrace.c (backtrace_full): When testing whether we can
allocate memory, call mmap directly, and munmap the memory.

Fixes https://github.com/ianlancetaylor/libbacktrace/issues/13 .

From-SVN: r259434
libbacktrace/ChangeLog
libbacktrace/backtrace.c