summaryrefslogtreecommitdiff
path: root/qresult.c
diff options
context:
space:
mode:
Diffstat (limited to 'qresult.c')
-rw-r--r--qresult.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qresult.c b/qresult.c
index 680bc60..61cb87b 100644
--- a/qresult.c
+++ b/qresult.c
@@ -382,7 +382,7 @@ inolog("QR_AddNew %dth row(%d fields) alloc=%d\n", self->num_cached_rows, QR_Num
else if (self->num_cached_rows >= self->count_backend_allocated)
{
alloc = self->count_backend_allocated * 2;
- self->backend_tuples = realloc(self->backend_tuples, alloc * sizeof(TupleField) * num_fields);
+ QR_REALLOC_return_with_error(self->backend_tuples, TupleField, alloc * sizeof(TupleField) * num_fields, self, "Out of memory in QR_AddNew.", NULL);
}
self->count_backend_allocated = alloc;