Thanks for the report. I cannot reproduce the problem as you describe it, however I did get a valgrind error on trunk using your repro script. The problem I see does not appear to be in any official release. Bisecting shows that the problem originates on this check-in: [832ac4c1ee384be0](src:/timeline?c=832ac4c1ee384be0). Does that agree with what you are seeing?