mercurial/manifest.c
changeset 27609 ca2d4080a02e
parent 27608 d6aa1a8c8d7c
child 27661 abc79f44f548
equal deleted inserted replaced
27608:d6aa1a8c8d7c 27609:ca2d4080a02e
   692 	 * underlying from_malloc-data (self->pydata is safe) */
   692 	 * underlying from_malloc-data (self->pydata is safe) */
   693 	if (compact(self) != 0) {
   693 	if (compact(self) != 0) {
   694 		goto nomem;
   694 		goto nomem;
   695 	}
   695 	}
   696 	copy = PyObject_New(lazymanifest, &lazymanifestType);
   696 	copy = PyObject_New(lazymanifest, &lazymanifestType);
       
   697 	if (!copy) {
       
   698 		goto nomem;
       
   699 	}
   697 	copy->dirty = true;
   700 	copy->dirty = true;
   698 	copy->lines = malloc(self->maxlines * sizeof(line));
   701 	copy->lines = malloc(self->maxlines * sizeof(line));
   699 	if (!copy->lines) {
   702 	if (!copy->lines) {
   700 		goto nomem;
   703 		goto nomem;
   701 	}
   704 	}