The Samba-Bugzilla – Bug 8117
Memory leak in get_cwd
Last modified: 2011-05-29 15:52:03 UTC
In util.c get_cwd is defined. When returning in the last if-statement, x_strdup is called and its value returned. But to local owner, cwd, is not freed, causing a small memory leak for that situation.
Suggest adding a free before line 1001, thus changing from
1001: return x_strdup(pwd);
1002: return x_strdup(pwd);
Thanks, fixed in a760f7e3200ac3ac44240ec5783c97c530f3676e.
Included in v3.1.5.