
Add proper return path to ensure that allocated memory for gmsglog variables is freed before exiting. In error cases when returning from the function without proper exit handling, not freeing allocated memory leads to memory leak. Change-Id: I718a6a3d1fef8598cb67e7d627bde00a8b009324 Signed-off-by: Ansa Ahmed <quic_ansa@quicinc.com>