Changeset: 82130051bd4a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/82130051bd4a
Modified Files:
monetdb5/optimizer/opt_emptybind.c
Branch: resource_management
Log Message:
small fix
diffs (22 lines):
diff --git a/monetdb5/optimizer/opt_emptybind.c
b/monetdb5/optimizer/opt_emptybind.c
--- a/monetdb5/optimizer/opt_emptybind.c
+++ b/monetdb5/optimizer/opt_emptybind.c
@@ -18,6 +18,7 @@
* where either argument is empty
*
*/
+#include "mal.h"
#include "monetdb_config.h"
#include "opt_emptybind.h"
#include "opt_aliases.h"
@@ -120,9 +121,8 @@ OPTemptybindImplementation(Client cntxt,
InstrPtr *tmp = updated;
//updated = GDKrealloc(updated,
// (esize
+= 256) * sizeof(InstrPtr));
- size_t old_size = updated_size;
updated = MA_RENEW_ARRAY(cntxt->ta, InstrPtr,
updated,
- (esize
+= 256), old_size);
+ (esize
+= 256), esize);
if (updated == NULL) {
// GDKfree(tmp);
updated = tmp;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]