diff options
author | Joshua Bakita <jbakita@cs.unc.edu> | 2020-10-20 16:30:44 -0400 |
---|---|---|
committer | Joshua Bakita <jbakita@cs.unc.edu> | 2020-10-20 16:30:44 -0400 |
commit | e9560dbece41136ffedd786723717efaa2a3a9fd (patch) | |
tree | bbb5cec16daa6f194a57f49cb0532b4eeaa91a41 /baseline/source/anagram/anagram_stdlib.c | |
parent | 2e4b1efc7e46b1278e162cb63632546af8f3e0e9 (diff) |
Fix the 4 TACLeBench members that would not loop before
- anagram, audiobeam: Reset heap in _init() function
- g723_enc: Don't use static local variables
- huff_dec: Reset all global state in _init() function
Diffstat (limited to 'baseline/source/anagram/anagram_stdlib.c')
-rw-r--r-- | baseline/source/anagram/anagram_stdlib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/baseline/source/anagram/anagram_stdlib.c b/baseline/source/anagram/anagram_stdlib.c index 994350b..c766a5e 100644 --- a/baseline/source/anagram/anagram_stdlib.c +++ b/baseline/source/anagram/anagram_stdlib.c | |||
@@ -142,6 +142,11 @@ void *anagram_malloc( unsigned int numberOfBytes ) | |||
142 | return currentPos; | 142 | return currentPos; |
143 | } | 143 | } |
144 | 144 | ||
145 | void anagram_free_all( void ) | ||
146 | { | ||
147 | anagram_freeHeapPos = 0; | ||
148 | } | ||
149 | |||
145 | void anagram_bzero( char *p, unsigned long len ) | 150 | void anagram_bzero( char *p, unsigned long len ) |
146 | { | 151 | { |
147 | unsigned long i; | 152 | unsigned long i; |