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); to 1001: free(cwd); 1002: return x_strdup(pwd);
Thanks, fixed in a760f7e3200ac3ac44240ec5783c97c530f3676e.
Included in v3.1.5.