parsers: fix refcount leak, simplify init of index (issue3417)...
parsers: fix refcount leak, simplify init of index (issue3417)
This is most easily verified using valgrind on a long-running
process, as the leak has no visible consequences during normal
one-shot command usage.
In one window:
valgrind --leak-check=full --suppressions=valgrind-python.supp \
python ./hg serve
In another:
for ((i=0;i<100;i++)); do
curl -s
http://localhost:8000/file/tip/README >/dev/null
done
valgrind should report no leaks.