# HG changeset patch # User Bryan O'Sullivan # Date 2015-12-14 18:47:27 # Node ID 7e8a883da1711008262150bb6f64131812de3e0b # Parent ec04370bdfaf923f22ed344670026b5d47b919d0 parsers: add a missed PyErr_NoMemory diff --git a/mercurial/parsers.c b/mercurial/parsers.c --- a/mercurial/parsers.c +++ b/mercurial/parsers.c @@ -1411,8 +1411,10 @@ static PyObject *index_headrevs(indexObj } nothead = calloc(len, 1); - if (nothead == NULL) + if (nothead == NULL) { + PyErr_NoMemory(); goto bail; + } for (i = 0; i < len; i++) { int isfiltered;