Transports/Iridium: Fixed memory leaks by allocating objects on the stack instead of on the heap. This commit closes bug #3051.