mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
1a6e16bcb1
- initscript: add status, PIDFILE and xconsole - syslog-ng.conf: dump the version - Fix some memory leak problems we found - Some backport patches - scl: fix wrong ownership issue - libnet: add libnet enable option and add it in PACKAGECONFIG - add HOMEPAGE - remove INC_PR - change some config into PACKAGECONFIG - add PACKAGE syslog-ng-libs to fix QA issue - use volatiles - inherit update-rc.d and update-alternative Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
28 lines
492 B
Diff
28 lines
492 B
Diff
Fix the memory leak problem when HAVE_ENVIRON is defined
|
|
|
|
Upstream-Status: Pending
|
|
|
|
Signed-off-by: Xufeng Zhang <xufeng.zhang@windriver.com>
|
|
---
|
|
--- a/lib/gprocess.c
|
|
+++ b/lib/gprocess.c
|
|
@@ -1421,6 +1421,18 @@
|
|
void
|
|
g_process_finish(void)
|
|
{
|
|
+#ifdef HAVE_ENVIRON
|
|
+ int i = 0;
|
|
+
|
|
+ while (environ[i]) {
|
|
+ g_free(environ[i]);
|
|
+ ++i;
|
|
+ }
|
|
+ if (environ)
|
|
+ g_free(environ);
|
|
+ if (process_opts.argv_orig)
|
|
+ free(process_opts.argv_orig);
|
|
+#endif
|
|
g_process_remove_pidfile();
|
|
}
|
|
|