Opened 12 years ago

Closed 12 years ago

Last modified 7 months ago

#8745 closed patch

Fix for memory leaks in File::exists

Reported by: jvprat Owned by: lordhoto
Priority: normal Component: --Other--
Keywords: Cc:


The File::exists function creates new FilesystemNode objects in order to test their physical existence, but doesn't delete them before returning or creating a new instance. The attached patch changes the FilesystemNode to be local variables, so they're automatically deleted.

Ticket imported from: #1829748. Ticket imported from: patches/850.

Attachments (1)

file-exists-leak.patch (1.4 KB) - added by jvprat 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by jvprat

Attachment: file-exists-leak.patch added

comment:1 Changed 12 years ago by lordhoto

Owner: set to lordhoto
Status: newclosed

comment:2 Changed 12 years ago by lordhoto

Committed, thanks for the patch.

comment:3 Changed 7 months ago by digitall

Component: --Other--
Note: See TracTickets for help on using tickets.