Skip to content

Commit

Permalink
Change the memory leak FAQ entry to describe the levels of thread saf…
Browse files Browse the repository at this point in the history
…ety in each function
  • Loading branch information
levitte committed Mar 23, 2005
1 parent 801fea5 commit 2950db5
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions FAQ
Original file line number Diff line number Diff line change
Expand Up @@ -792,9 +792,20 @@ that is allocated when an application starts up. Since such tables do not grow
in size over time they are harmless.

These internal tables can be freed up when an application closes using various
functions. Currently these include: EVP_cleanup(), ERR_remove_state(),
ERR_free_strings(), ENGINE_cleanup(), CONF_modules_unload() and
CRYPTO_cleanup_all_ex_data().
functions. Currently these include following:

Thread-local cleanup functions:

ERR_remove_state()

Application-global cleanup functions that are aware of usage (and therefore
thread-safe):

ENGINE_cleanup() and CONF_modules_unload()

"Brutal" (thread-unsafe) Application-global cleanup functions:

ERR_free_strings(), EVP_cleanup() and CRYPTO_cleanup_all_ex_data().


===============================================================================
Expand Down

0 comments on commit 2950db5

Please sign in to comment.