aboutsummaryrefslogtreecommitdiffhomepage
path: root/proc.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-09 18:43:36 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-09 18:43:36 -0800
commite5ff5f7484c0e751172a2cab65d6d88a68ef281d (patch)
treeab384fbf6216fa62a602fab569a6ffc47d629fa6 /proc.h
parent646240fc54617d39e0768d256a15eda94ee52812 (diff)
Some hopefully good changes to get IOs off of halloc
Diffstat (limited to 'proc.h')
-rw-r--r--proc.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/proc.h b/proc.h
index 92bdc62f..a995af90 100644
--- a/proc.h
+++ b/proc.h
@@ -297,6 +297,12 @@ class job_t
~job_t() {
if (first_process != NULL)
delete first_process;
+ io_data_t *data = this->io;
+ while (data) {
+ io_data_t *tmp = data->next;
+ delete data;
+ data = tmp;
+ }
}
@@ -336,7 +342,7 @@ class job_t
const int job_id;
/**
- List of all IO redirections for this job
+ List of all IO redirections for this job. This linked list is allocated via new, and owned by the object, which should delete them.
*/
io_data_t *io;