........S. [ZBXNEXT-2519] fix leak during mediatype update when security checks fail