~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_patiencediff_c.c

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-11-29 02:37:47 UTC
  • mfrom: (3872.1.2 patiencediff_c-fix)
  • Revision ID: pqm@pqm.ubuntu.com-20081129023747-31a9su43tijw8p3r
Call PyErr_NoMemory() before returning NULL in
        PatienceSequenceMatcher_new.

Show diffs side-by-side

added added

removed removed

Lines of Context:
768
768
        self->backpointers = (Py_ssize_t *)malloc(sizeof(Py_ssize_t) * self->bsize * 4);
769
769
        if (self->backpointers == NULL) {
770
770
            Py_DECREF(self);
 
771
            PyErr_NoMemory();
771
772
            return NULL;
772
773
        }
773
774