summaryrefslogtreecommitdiff
path: root/operators.c
diff options
context:
space:
mode:
Diffstat (limited to 'operators.c')
-rw-r--r--operators.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/operators.c b/operators.c
index a06b0d6..336588a 100644
--- a/operators.c
+++ b/operators.c
@@ -111,7 +111,7 @@ opOuterProduct(Datum *lefto, Array *left, Array *right)
int i;
int rank = left->rank + right->rank;
int size = 1;
- int *shape = malloc(sizeof(int) * rank);
+ int *shape = emalloc(sizeof(int) * rank);
for(i = 0; i < left->rank; i++){
shape[i] = left->shape[i];
size *= left->shape[i];