This vaguely reminds me of the following.
Another possibility is there is a bug in @time if that is the sole way you are checking allocations.
@time
Have you tried AllocCheck.jl?