leveldb write debug. Free error string if it was set by previous read