Mercurial > hg > MonetDB-extend
comparison cxx-reverse/reverse.cpp @ 55:68263b10998e
Updated: added bat_iterator_end.
author | Sjoerd Mullender <sjoerd@acm.org> |
---|---|
date | Wed, 26 Jan 2022 14:59:05 +0100 (2022-01-26) |
parents | 9ff721585946 |
children | 8122094c79b1 |
comparison
equal
deleted
inserted
replaced
54:9ff721585946 | 55:68263b10998e |
---|---|
148 * grow memory areas--especially true for | 148 * grow memory areas--especially true for |
149 * string BATs */ | 149 * string BATs */ |
150 goto bailout; | 150 goto bailout; |
151 } | 151 } |
152 } | 152 } |
153 bat_iterator_end(&bi); | |
153 GDKfree(dst); | 154 GDKfree(dst); |
154 | 155 |
155 BBPunfix(b->batCacheid); | 156 BBPunfix(b->batCacheid); |
156 | 157 |
157 *retval = bn->batCacheid; | 158 *retval = bn->batCacheid; |
160 return MAL_SUCCEED; | 161 return MAL_SUCCEED; |
161 | 162 |
162 bailout: | 163 bailout: |
163 /* we only get here in the case of an allocation error; clean | 164 /* we only get here in the case of an allocation error; clean |
164 * up the mess we've created and throw an exception */ | 165 * up the mess we've created and throw an exception */ |
166 bat_iterator_end(&bi); | |
165 GDKfree(dst); | 167 GDKfree(dst); |
166 BBPunfix(b->batCacheid); | 168 BBPunfix(b->batCacheid); |
167 BBPunfix(bn->batCacheid); | 169 BBPunfix(bn->batCacheid); |
168 throw(MAL, "batrevstr.revstr", MAL_MALLOC_FAIL); | 170 throw(MAL, "batrevstr.revstr", MAL_MALLOC_FAIL); |
169 } | 171 } |