removed old ob_free fix that was causing segfaults; added other memory leak fixes

TBD.

goes with https://github.com/opentechinstitute/commotiond/pull/117