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): rhnsd-4.5.16-1 How reproducible: consistent 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 Actual results: Leaks memory. Expected results: Doesn't leak memory. Additional info: https://www.redhat.com/archives/spacewalk-list/2010-January/msg00172.html
Fixed in master as of f987184526fb2cecf47b9dce8bf69c1c66a86d88 on Mar 18. Sorry it took so long...
Spacewalk 1.1 has been released.