Yuri, I tried valgrind today - its really easy to use and works great! I highly recommend using it on GEOS - it'll tell you exactly where you allocated memory that you didnt free. It has a whole pile of other tools. dave