Call ENGINE_cleanup() to avoid memory leak.