This bug was not so difficult to fix. It would even have been quite
easy to detect with a good test coverage tool showing that not all
possible path had been tested in this method. I hope to be able to
make some progress on this subject in the future. However I will have
a try with Valgrind.

If you are on Linux, or any of the supported targets, *always* use
valgrind when handling this kind of issue. If you are not, just let me
know, and I will for you.