summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sim/syscall_emul.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh
index 130791d20..fb6e9a168 100644
--- a/src/sim/syscall_emul.hh
+++ b/src/sim/syscall_emul.hh
@@ -1562,7 +1562,9 @@ cloneFunc(SyscallDesc *desc, int callnum, ThreadContext *tc)
pp->useArchPT = p->useArchPT;
pp->kvmInSE = p->kvmInSE;
Process *cp = pp->create();
- delete pp;
+ // TODO: there is no way to know when the Process SimObject is done with
+ // the params pointer. Both the params pointer (pp) and the process
+ // pointer (cp) are normally managed in python and are never cleaned up.
Process *owner = ctc->getProcessPtr();
ctc->setProcessPtr(cp);