diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-09 18:43:36 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-09 18:43:36 -0800 |
commit | e5ff5f7484c0e751172a2cab65d6d88a68ef281d (patch) | |
tree | ab384fbf6216fa62a602fab569a6ffc47d629fa6 /proc.h | |
parent | 646240fc54617d39e0768d256a15eda94ee52812 (diff) |
Some hopefully good changes to get IOs off of halloc
Diffstat (limited to 'proc.h')
-rw-r--r-- | proc.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; |