Created attachment 386691 [details]
Patch to fix regex memory leak
Description of problem:
parse_systemid_path() calls regcomp() without ever calling regfree(). regcomp() uses malloc() to allocate buffers in (regex_t *)preg. regfree(&re_systemIdPath) should be called prior to the return from parse_systemid_path(). Patch attached.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run rhnsd with a low interval (better yet, compile a version to bypass minimum interval to 60 minutes)
2. watch memory consumption grow
Doesn't leak memory.
Fixed in master as of f987184526fb2cecf47b9dce8bf69c1c66a86d88 on Mar 18. Sorry it took so long...
Spacewalk 1.1 has been released.