Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331156

Summary: [LTTng] Memory leak when selecting an experiment
Product: z_Archived Reporter: Bernd Hufmann <bernd.hufmann>
Component: LinuxToolsAssignee: Francois Chouinard <fchouinard>
Status: CLOSED FIXED QA Contact: Francois Chouinard <fchouinard>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Fix for memory leak fchouinard: iplog+

Description Bernd Hufmann CLA 2010-11-25 15:59:47 EST
Build Identifier: 

When selecting an experiment, the previous loaded experiment is not cleaned-up properly, which causes a memory leak. The size of the leak depends on the size of the previous loaded experiment (number events).

Reproducible: Always
Comment 1 Bernd Hufmann CLA 2010-11-25 16:16:17 EST
Created attachment 183888 [details]
Fix for memory leak

This patch fixes the memory leak. Before processing the new experiment, the old experiment will be clean-up and all relevant references in the LTTngTreeNode structure  (experiment and traces) will be removed. By doing that also the garbage collector can clean up the unused objects (including the checkpoints!).
Comment 2 Francois Chouinard CLA 2010-11-25 16:23:08 EST
Comment on attachment 183888 [details]
Fix for memory leak

Patch committed.
Comment 3 Francois Chouinard CLA 2010-11-25 16:23:30 EST
Bug fixed. Thanks Bernd.
Comment 4 Francois Chouinard CLA 2011-07-22 14:55:10 EDT
Delivered with 0.7