fix LEAK_DEBUG
Merge pull request #29 from baranowb/FIX_LEAK_DEBUG-3.x

fix LEAK_DEBUG