Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » [BUG] Heap leak in SysExec package
[BUG] Heap leak in SysExec package [message #41833] Mon, 27 January 2014 18:36 Go to previous message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Hi,

there is a heap leak in SysExec.cpp originating from not freeing argv and envv pointers at the end of SysExec function.

In addition I propose to introduce a flag DELETE_TMP_FILES or something similar to delete created tmp files when SysExec finishes. The reason for this request is that I have a programm that repeatedly calls SysExec and therefore the directory containing tmp files ends up unnecessarily containing a lot of them.

The proposed patch is attached.

[edit] Wherever BuildArgs or BuildEnv are called the pointers need to be freed e.g., also in SudoLib.cpp.

Regards
Matthias

[Updated on: Mon, 27 January 2014 20:37]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: FTGL_Demo WantFocus();
Next Topic: PieChart: Title disable
Goto Forum:
  


Current Time: Sat Apr 20 05:46:18 CEST 2024

Total time taken to generate the page: 0.05654 seconds