tm: free new tm cell in case of error if it was not referenced
- part of t_uac_prepare(), reported by GH #1554
(cherry picked from commit f94770840029c1c73ab129f4b71fcb0cf146d808)
(cherry picked from commit 3da0bcb4b4e27d115a2d6eb47cd0cebc33d34a61)
Daniel-Constantin Mierla%!s(int64=7) %!d(string=hai) anos