Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4bf95907 authored by Sreelakshmi Gownipalli's avatar Sreelakshmi Gownipalli Committed by Manoj Prabhu B
Browse files

diag: Free the mask update client buf in exit case



Free the diag mask update client buf in diag_mask_exit()
during memory device mode application exit.

Change-Id: I8e747066924c993170af952f9bb9893c84c96445
Signed-off-by: default avatarSreelakshmi Gownipalli <sgownipa@codeaurora.org>
parent 1280f668
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1858,6 +1858,8 @@ static void __diag_mask_exit(struct diag_mask_info *mask_info)
	mask_info->ptr = NULL;
	kfree(mask_info->update_buf);
	mask_info->update_buf = NULL;
	kfree(mask_info->update_buf_client);
	mask_info->update_buf_client = NULL;
	mutex_unlock(&mask_info->lock);
}