mercurial/parsers.c
changeset 26007 1ebf4ac07582
parent 26004 ff89383a97db
child 26008 59d57ea69ae6
equal deleted inserted replaced
26006:1ffd97cbf9a2 26007:1ebf4ac07582
  1141 	if (includepatharg == Py_True)
  1141 	if (includepatharg == Py_True)
  1142 		includepath = 1;
  1142 		includepath = 1;
  1143 
  1143 
  1144 	/* Initialize return set */
  1144 	/* Initialize return set */
  1145 	reachable = PySet_New(0);
  1145 	reachable = PySet_New(0);
  1146 	if (reachable == NULL)
  1146 	if (reachable == NULL) {
       
  1147 		PyErr_NoMemory();
  1147 		goto bail;
  1148 		goto bail;
       
  1149 	}
  1148 
  1150 
  1149 	/* Initialize internal datastructures */
  1151 	/* Initialize internal datastructures */
  1150 	tovisit = (int *)malloc((len + 1) * sizeof(int));
  1152 	tovisit = (int *)malloc((len + 1) * sizeof(int));
  1151 	if (tovisit == NULL) {
  1153 	if (tovisit == NULL) {
  1152 		PyErr_SetNone(PyExc_MemoryError);
  1154 		PyErr_SetNone(PyExc_MemoryError);