# HG changeset patch # User Bryan O'Sullivan # Date 1450118847 28800 # Node ID 7e8a883da1711008262150bb6f64131812de3e0b # Parent ec04370bdfaf923f22ed344670026b5d47b919d0 parsers: add a missed PyErr_NoMemory diff -r ec04370bdfaf -r 7e8a883da171 mercurial/parsers.c --- a/mercurial/parsers.c Mon Dec 14 10:47:26 2015 -0800 +++ b/mercurial/parsers.c Mon Dec 14 10:47:27 2015 -0800 @@ -1411,8 +1411,10 @@ } nothead = calloc(len, 1); - if (nothead == NULL) + if (nothead == NULL) { + PyErr_NoMemory(); goto bail; + } for (i = 0; i < len; i++) { int isfiltered;