[sr-dev] git:5.1:3da0bcb4: tm: free new tm cell in case of error if it was not referenced