Handle memory allocation errors in FNK, GTK and ULT loaders

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Handle memory allocation errors in AMD, EMOD and IMS loaders

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Handle memory allocation errors in DIGI, MFP and MMD1 loaders

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Handle memory allocation errors in GDM, HSC and LIQ-NO loaders

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Handle memory allocation errors in Coconizer and MED2 loaders

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Simplify pattern and track allocation in loaders

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>