This patch should fix all the warnings reported by valgrind, a possible cause of crashes in this case.
This patch should fix all the warnings reported by valgrind, a possible cause of crashes in this case.