diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-01-29 23:22:42 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-01-29 23:22:42 -0800 |
commit | 316f81119f24471882f2d394cd332bcc1312da4d (patch) | |
tree | e040a7a439e5566e3a0518f0cbb092e8a8b788b2 /proc.h | |
parent | 8d016040abaa60416dd1e3625b1727dcd84f3e79 (diff) |
Excised some more halloc
Diffstat (limited to 'proc.h')
-rw-r--r-- | proc.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -166,6 +166,7 @@ class process_t if (this->next != NULL) delete this->next; this->free_argv(); + free((void *)actual_cmd); //may be NULL } /** @@ -178,7 +179,6 @@ class process_t /** Sets argv */ void set_argv(wchar_t **argv) { - free_argv(); #if 0 // argv must be a malloc'd array of malloc'd strings. This bit of nonsense below can help catch if someone doesn't pass us something from malloc. @@ -191,6 +191,7 @@ class process_t } #endif + free_argv(); this->argv_array = argv; } @@ -203,7 +204,7 @@ class process_t /** Returns argv[idx] */ const wchar_t *argv(size_t idx) const { return argv_array[idx]; } - /** actual command to pass to exec in case of EXTERNAL or INTERNAL_EXEC */ + /** actual command to pass to exec in case of EXTERNAL or INTERNAL_EXEC. malloc'd! */ const wchar_t *actual_cmd; /** process ID */ |