Fix corner cases in http parsing

This patch adds checks for malloc / strdup, and free all memory
when such call fails.
Merge pull request #1780 from hardening/http_malloc_fixes

Fix corner cases in http parsing
Fixes in case of OOM
Treat OOM cases
Merge pull request #1781 from hardening/collections_fixes

Fixes in case of OOM
Merge pull request #1782 from hardening/oom_cases

Treat OOM cases
Merge branch 'master' of github.com:FreeRDP/FreeRDP into smartcard