##// END OF EJS Templates
parsers: use Py_INCREF safely
Bryan O'Sullivan -
r19726:b3c8c6f2 default
parent child Browse files
Show More
@@ -540,11 +540,12 b' static PyObject *index_get(indexObject *'
540 uncomp_len, base_rev, link_rev,
540 uncomp_len, base_rev, link_rev,
541 parent_1, parent_2, c_node_id, 20);
541 parent_1, parent_2, c_node_id, 20);
542
542
543 if (entry)
543 if (entry) {
544 PyObject_GC_UnTrack(entry);
544 PyObject_GC_UnTrack(entry);
545 Py_INCREF(entry);
546 }
545
547
546 self->cache[pos] = entry;
548 self->cache[pos] = entry;
547 Py_INCREF(entry);
548
549
549 return entry;
550 return entry;
550 }
551 }
General Comments 0
You need to be logged in to leave comments. Login now