Free memory to avoid memory leaks in ABK loader

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