Fixed memory leak for cache in ALSA Output module
Imporved code in HTTP client module