• Marc G. Fournier's avatar
    From: Igor <igor@sba.miami.edu> · 9a5529f4
    Marc G. Fournier authored
    Subject: [PATCHES] memory leak patches in libpq and psql
    
    A couple of small memory leak patches (detected with Purify) primarily
    in libpq.
    
    * Fixed (NULL) border problem in psql (run psql, do \m, then select
      something from a table...row separators will be nulls)
    * Fixed memory leak with the abovementioned border not being freed
      properly.
    * Fixed memory leak in freePGconn() not freeing conn->port
    * Fixed up PQclear() to free parts of PGresult only if these
      parts are not null.
    * Fixed a decent memory leak that occured after executing every command
      in psql. PGresult *results was not freed most of the time.
    
    There is still a leak being detected (2 bytes) in readline functions, but
    I think this is old readline library. I will install new one and test it.
    9a5529f4
fe-connect.c 25.9 KB