Currently in function ol_copy_ramdump dynamically allocated memory is not freed before return in error condition. In this change free memory before return. Change-Id: Ie75d69a1716c3598e0123064a6ee522076748f7d CRs-Fixed: 2044460