diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2017-08-29 00:30:30 +0200 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2017-08-29 00:35:19 +0200 |
commit | df29455dbce7f75f61339067c6f6ac43a9ff3fd7 (patch) | |
tree | f746abb7ecb2eb88c497bf859f4e9873646d5150 /docs/Makefile.am | |
parent | edcb1ef60fdbbd3d78d9c9265f1ce63360e87d7b (diff) |
asyn-thread: Fixed cleanup after OOM
destroy_async_data() assumes that if the flag "done" is not set yet, the
thread itself will clean up once the request is complete. But if an
error (generally OOM) occurs before the thread even has a chance to
start, it will never get a chance to clean up and memory will be leaked.
By clearing "done" only just before starting the thread, the correct
cleanup sequence will happen in all cases.
Diffstat (limited to 'docs/Makefile.am')
0 files changed, 0 insertions, 0 deletions