[SERVER-2503] mismatched new[] and delete (non array version) in repl_block.cpp Created: 09/Feb/11  Updated: 12/Jul/16  Resolved: 09/Feb/11

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 1.7.6

Type: Bug Priority: Major - P3
Reporter: Aaron Staple Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

In repl_block.cpp an Info's loc is allocated using new [] but deallocated using the non array version of delete.

Reported while running the repl set tests under valgrind.



 Comments   
Comment by auto [ 09/Feb/11 ]

Author:

{u'login': u'dwight', u'name': u'dwight', u'email': u'dwight@10gen.com'}

Message: Revert "attempt to fix SERVER-2503"

This reverts commit 2b1c61b92ab2e9b7d4da1c1c9f2e1e23ab8034a1.
https://github.com/mongodb/mongo/commit/6a6e4d571d0bcaaaf88f8202d3c3cff37683161e

Generated at Thu Feb 08 03:00:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.