savedir.c savedir When the realloc of the variable name_space fails, free the memory assigned to name_space before returning
Run clang's static analyzer, scan-build, to reproduce the problem. After, run scan-build again to verify the resolution.
See BSDism reallocf(3) instead, it does free() automatically.
Yes I am aware of the bsd-ism.
Generally it isn¹t a good idea to use ism¹s.
In this case the problem is in grep which is gnu, and not bsd.
Ah, it is gnu one. Sorry I don't check first. Thats OK.