Skip to content

Replaced PyErr_NoMemory with ImagingError_MemoryError#5113

Merged
hugovk merged 2 commits intopython-pillow:masterfrom
radarhere:memory
Dec 20, 2020
Merged

Replaced PyErr_NoMemory with ImagingError_MemoryError#5113
hugovk merged 2 commits intopython-pillow:masterfrom
radarhere:memory

Conversation

@radarhere
Copy link
Copy Markdown
Member

@radarhere radarhere commented Dec 20, 2020

In several locations,

  • Replaced PyErr_NoMemory with ImagingError_MemoryError

    Pillow/src/_imaging.c

    Lines 279 to 283 in c1707d5

    void *
    ImagingError_MemoryError(void)
    {
    return PyErr_NoMemory();
    }
  • Simplified
ImagingError_MemoryError();
return NULL;

into

return ImagingError_MemoryError();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants