Skip to content

Cleanup child processes on exit

Pritama Biswas requested to merge pritbisw/weston:pritbisw-main-patch-24125 into main

Weston is not cleaning up child processes at the time of exit. This is leading to memory leaks. After this change, this memory leak was successfully removed.

Before using this change, the memory leak summary of Weston was:
==1115== LEAK SUMMARY:
==1115== definitely lost: 19,963 bytes in 36 blocks
==1115== indirectly lost: 13,112 bytes in 59 blocks
==1115== possibly lost: 143 bytes in 4 blocks
==1115== still reachable: 62,427 bytes in 116 blocks
==1115== suppressed: 0 bytes in 0 blocks\

After this change, the possibly lost memory leaks were completely removed and definitely lost memory leak was reduced as shown below:\ ==1123== LEAK SUMMARY:
==1123== definitely lost: 19,953 bytes in 35 blocks
==1123== indirectly lost: 13,112 bytes in 59 blocks
==1123== possibly lost: 0 bytes in 0 blocks
==1123== still reachable: 62,427 bytes in 116 blocks
==1123== suppressed: 0 bytes in 0 blocks

Merge request reports