Skip to content

Commit

Permalink
Merge pull request #5958 from radarhere/memory
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Mar 27, 2022
2 parents 57a5066 + fe32501 commit 5a35e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/path.c
Expand Up @@ -57,7 +57,7 @@ alloc_array(Py_ssize_t count) {
if ((unsigned long long)count > (SIZE_MAX / (2 * sizeof(double))) - 1) {
return ImagingError_MemoryError();
}
xy = calloc(2 * count * sizeof(double) + 1, sizeof(double));
xy = calloc(2 * count + 1, sizeof(double));
if (!xy) {
ImagingError_MemoryError();
}
Expand Down

0 comments on commit 5a35e87

Please sign in to comment.