........S. [ZBX-7621] fix possible crash on attempt to free unallocated memory