diff options
| author | Jari Aalto <jari.aalto@cante.net> | 2002-07-17 14:10:11 +0000 |
|---|---|---|
| committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:55 +0000 |
| commit | 7117c2d221b2aed4ede8600f6a36b7c1454b4f55 (patch) | |
| tree | b792f26ecca68813c51ed5ba2e381790758ef31b /dispose_cmd.c | |
| parent | f73dda092b33638d2d5e9c35375f687a607b5403 (diff) | |
| download | android_external_bash-7117c2d221b2aed4ede8600f6a36b7c1454b4f55.tar.gz android_external_bash-7117c2d221b2aed4ede8600f6a36b7c1454b4f55.tar.bz2 android_external_bash-7117c2d221b2aed4ede8600f6a36b7c1454b4f55.zip | |
Imported from ../bash-2.05b.tar.gz.
Diffstat (limited to 'dispose_cmd.c')
| -rw-r--r-- | dispose_cmd.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dispose_cmd.c b/dispose_cmd.c index 7a9f202..90515df 100644 --- a/dispose_cmd.c +++ b/dispose_cmd.c @@ -29,6 +29,8 @@ #include "bashansi.h" #include "shell.h" +extern sh_obj_cache_t wdcache, wlcache; + /* Dispose of the command structure passed. */ void dispose_command (command) @@ -222,7 +224,11 @@ dispose_word (w) WORD_DESC *w; { FREE (w->word); +#if 0 free (w); +#else + ocache_free (wdcache, WORD_DESC, w); +#endif } /* How to get rid of a linked list of words. A WORD_LIST. */ @@ -237,7 +243,11 @@ dispose_words (list) t = list; list = list->next; dispose_word (t->word); +#if 0 free (t); +#else + ocache_free (wlcache, WORD_LIST, t); +#endif } } @@ -277,6 +287,7 @@ dispose_redirects (list) case r_deblank_reading_until: free (t->here_doc_eof); /*FALLTHROUGH*/ + case r_reading_string: case r_output_direction: case r_input_direction: case r_inputa_direction: @@ -286,6 +297,8 @@ dispose_redirects (list) case r_output_force: case r_duplicating_input_word: case r_duplicating_output_word: + case r_move_input_word: + case r_move_output_word: dispose_word (t->redirectee.filename); /* FALLTHROUGH */ default: |
