No one should care of this but to make shure.. At Tue, 29 Mar 2016 20:12:03 +0900 (Tokyo Standard Time), Kyotaro HORIGUCHI <[email protected]> wrote in <[email protected]> > By the way, memory blocks that readline sees are freed by it but > blocks allocated by the additional pstrdup seems abandoned > without being freed. Actually, the address of newly allocated > blocks seems increasing time by time slowly *even without this > patch*..
psql doesn't leak memory. The increment was the result of new history entry. src/common/exec.c does the following thing, ./common/exec.c:586: putenv(strdup(env_path)); ./common/exec.c:597: putenv(strdup(env_path)); valgrind complains that the memory block allocated there is definitely lost but it seems to be called once in lifetime of a process. regards, -- Kyotaro Horiguchi NTT Open Source Software Center -- Sent via pgsql-hackers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
