Make failmalloc disable itself on program exit.
authorDan Fandrich <dan@coneharvesters.com>
Wed, 31 Jul 2019 22:09:34 +0000 (00:09 +0200)
committerDan Fandrich <dan@coneharvesters.com>
Wed, 31 Jul 2019 22:58:47 +0000 (00:58 +0200)
commit6129d0592234cefd12624e55f6cf03ed5901fb4d
tree4b3ad0ff37347dedba4ea5e64223e7c134e0c436
parent5c74c8576ccb8e38a4ed7555a03f5bf82bb0decc
Make failmalloc disable itself on program exit.

Something in the Travis build environment has changed recently to cause
failmalloc runs to crash while exiting due to a NULL pointer dereference
in the coverage writing code. This fix causes failmalloc to
automatically disable itself once main() exits so subsequent memory
requests always succeed. Since the application (and library) have no
control over what happens during exit cleanup anyway, this does not
affect its functionality.
.travis.yml