diff options
author | Charles Lane <lane@DUPHY4.Physics.Drexel.Edu> | 2001-03-01 10:54:09 -0500 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-03-02 15:51:16 +0000 |
commit | 5c0ae288a26eb80423f967ca816c14afb7276b7c (patch) | |
tree | cfd1e34986cf50feab119f7c723b73be905eabf5 /vms | |
parent | 91b2752fd727c3be466bc3193417272f8aeab087 (diff) | |
download | perl-5c0ae288a26eb80423f967ca816c14afb7276b7c.tar.gz |
VMS piping ... cleanup at interpreter exit
Message-Id: <010301155258.b8cc1@DUPHY4.Physics.Drexel.Edu>
p4raw-id: //depot/perl@8983
Diffstat (limited to 'vms')
-rw-r--r-- | vms/vms.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -1732,6 +1732,18 @@ struct _pipeloc { }; static pPLOC head_PLOC = 0; +void +free_pipelocs(void *head) +{ + pPLOC p, pnext; + + p = (pPLOC) head; + while (p) { + pnext = p->next; + Safefree(p); + p = pnext; + } +} static void store_pipelocs() @@ -1798,7 +1810,7 @@ store_pipelocs() p->dir[NAM$C_MAXRSS] = '\0'; } #endif - + Perl_call_atexit(&free_pipelocs, head_PLOC); } |