diff 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
line wrap: on
line diff
--- a/cxx-reverse/reverse.cpp	Mon Dec 13 12:40:58 2021 +0100
+++ b/cxx-reverse/reverse.cpp	Wed Jan 26 14:59:05 2022 +0100
@@ -150,6 +150,7 @@
 			goto bailout;
 		}
 	}
+	bat_iterator_end(&bi);
 	GDKfree(dst);
 
 	BBPunfix(b->batCacheid);
@@ -162,6 +163,7 @@
   bailout:
 	/* we only get here in the case of an allocation error; clean
 	 * up the mess we've created and throw an exception */
+	bat_iterator_end(&bi);
 	GDKfree(dst);
 	BBPunfix(b->batCacheid);
 	BBPunfix(bn->batCacheid);