SIGN IN SIGN UP

Fix memory leaks and add checks for failing malloc() calls to testcapi module

CID 1058288
Fix declaration-after-statement of d49f65ff4f3c
C
Christian Heimes committed
cb7ca526e892ba966a2bc4b61a240cdd3cf9fd99