Home » Developing U++ » UppHub » [BUG] Heap leak in SysExec package
[BUG] Heap leak in SysExec package [message #41833] |
Mon, 27 January 2014 18:36  |
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
|
|
|
|
|
Goto Forum:
Current Time: Sun May 11 15:20:12 CEST 2025
Total time taken to generate the page: 0.03178 seconds
|