[FIX] Remove worst memory leaks [#40 state:fixed]