Menu

#8 Coverity defect: null dereference (#3)

open
nobody
None
5
2012-12-06
2010-05-25
Nick Sayer
No

in encodeObject(), if gzip is disabled, then gzos.close() will dereference null. Of course, it winds up eating the thrown exception anyway, but it would be slightly more efficient to null-test-conditionalize the close().

Discussion


Log in to post a comment.

MongoDB Logo MongoDB