Commit 6226950
authored
Delete leveldb::DB object on error (#1204)
leveldb do not manage DB objects lifetime by itself. So in case of error
or early return from the Open routine leveldb::DB object should be
removed explicitly
Relates-To: OLPSUP-14088
Signed-off-by: Andrey Kashcheev <[email protected]>1 parent 0ee679c commit 6226950
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
272 | 274 | | |
273 | 275 | | |
274 | 276 | | |
275 | 277 | | |
276 | | - | |
| 278 | + | |
277 | 279 | | |
278 | 280 | | |
279 | 281 | | |
| |||
0 commit comments