Skip to content

Commit

Permalink
Remove stack trace code that itself would trigger an InvalidMemoryOpe…
Browse files Browse the repository at this point in the history
…rationError.
  • Loading branch information
s-ludwig committed Mar 25, 2024
1 parent 4bb5966 commit da4b61d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions mongodb/vibe/db/mongo/cursor.d
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,6 @@ struct MongoCursor(DocType = Bson) {
// leaked to the GC
if(GC.inFinalizer) {
logError("MongoCursor instance that has not been fully processed leaked to the GC!");
try throw new Exception("");
catch (Exception e) {
try () @trusted { logError("%s", e.info); } ();
catch (Exception e2) logError(" ... failed to generate stack trace");
}
} else {
try m_data.killCursors();
catch (MongoException e) {
Expand Down

0 comments on commit da4b61d

Please sign in to comment.