(#2250) - fix small leveldb memory leak

@davedoesdev Your fix seems pretty obvious to me, but here's a PR so we can let Travis verify that it's all good.  I took the liberty of committing in your name, hope that's okay.  :smiley: