Skip to content

Commit 025c0a8

Browse files
Merge pull request #406 from bratpiorka/rrudnick_disjoint_catch
catch any possible errors from logger in Disjoint Pool
2 parents c75dd86 + 04e6cb0 commit 025c0a8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/pool/pool_disjoint.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -446,10 +446,14 @@ Slab::~Slab() {
446446
const char *message = "";
447447
int error = 0;
448448

449-
umfMemoryProviderGetLastNativeError(
450-
umfGetLastFailedMemoryProvider(), &message, &error);
451-
LOG_ERR("Native error msg: %s, native error code: %d", message,
452-
error);
449+
try {
450+
umfMemoryProviderGetLastNativeError(
451+
umfGetLastFailedMemoryProvider(), &message, &error);
452+
LOG_ERR("Native error msg: %s, native error code: %d", message,
453+
error);
454+
} catch (...) {
455+
// ignore any additional errors from logger
456+
}
453457
}
454458
}
455459
}

0 commit comments

Comments
 (0)