diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2018-02-06 01:35:22 -0800 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2018-02-06 01:35:22 -0800 |
commit | 8bc2f9e7efef792259a1603efaff916de9ef3467 (patch) | |
tree | 7dcdc9baa806e7597e01921db9b380ec41b2735b /numpy | |
parent | a2592e092a076bb0c87f5588dbffee4a6844dc08 (diff) | |
download | numpy-8bc2f9e7efef792259a1603efaff916de9ef3467.tar.gz |
BUG: Set missing exception after malloc
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/multiarray/buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/src/multiarray/buffer.c b/numpy/core/src/multiarray/buffer.c index f892cf6cd..4aa25a196 100644 --- a/numpy/core/src/multiarray/buffer.c +++ b/numpy/core/src/multiarray/buffer.c @@ -834,6 +834,7 @@ _descriptor_from_pep3118_format(char *s) /* Strip whitespace, except from field names */ buf = malloc(strlen(s) + 1); if (buf == NULL) { + PyErr_NoMemory(); return NULL; } p = buf; |