-
If %#Z is followed by %Z then we accidentally free the tmp variable from the previous iteration of the loop a second time. Good job to the static analysis tool (probably Coverity) that found this. Fortunately it's unlikely that a realistic application would do this. I've also added a new test that crashes without the fix
a893d622