Fix ByteBuf leak

Signed-off-by: Graham <gpe@openrs2.org>
Graham 3 years ago
parent 8448f74b3c
commit 39d2ad7ee3
  1. 2
      archive/src/main/kotlin/org/openrs2/archive/cache/CacheImporter.kt

@ -102,11 +102,11 @@ public class CacheImporter @Inject constructor(
// import master index
val masterIndex = createMasterIndex(store)
val masterIndexId = try {
if (masterIndex.index.entries.isEmpty()) {
throw IOException("Master index empty, cache probably corrupt")
}
val masterIndexId = try {
addMasterIndex(connection, masterIndex)
} finally {
masterIndex.release()

Loading…
Cancel
Save