Steve Singer ssinger at ca.afilias.info
Fri May 7 07:16:01 PDT 2010
Ulrich Weber wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi all,
> 
> finally I found the memory leak I was searching for:

Thanks for the patch.

> 
> The remoteListenThread is subscribed to notifications events,
> however the events are never removed from the queue.
> 
> Don't know if the postgresql notifications are still needed,
> because they got removed in slony1-2. I added a simple
> +       while ((notification = PQnotifies(conn->dbconn)) != NULL)
> +               PQfreemem(notification);
> but maybe the whole listen/unlisten statements can be removed anyway ??

Maybe Jan can confirm on this but I think they still needed in 1.2

Both patches 'look' okay to me, but with our recent history of memory 
leak fixes causing issues (ie 2.0.3) I'd feel more confident if another 
set of eyes also gave it a +1 before committing.




> 
> I also removed the "SlonDString lsquery" variable in
> remoteWorkerThread_main,
> seems not to be used.
> 
> 
> @Steve Singer: Thanks for your feedback, moved the dstring_free()
> call after the while loop.
> 
> 
> In 2.0.3 I found some other memory leaks. Also there seems to be a
> typo in cleanupThread_main():
> - -                               vrc = PQresultStatus(res);
> +                               vrc = PQresultStatus(res2);
> 
> Best regards,
>  Ulrich
> 
> - --
> Ulrich Weber | uweber at astaro.com | Software Engineer
> Astaro GmbH & Co. KG | www.astaro.com | Phone +49-721-25516-0 | Fax –200
> An der RaumFabrik 33a | 76227 Karlsruhe | Germany
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iEYEARECAAYFAkvazhcACgkQ22t2oTuElzoePACeNUcsLSGPZYIMIX1vtnBqyj3H
> kD4AoK3nVO8/Mnp1p2TY1wDOjWhZ1fqj
> =I3Uk
> -----END PGP SIGNATURE-----
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Slony1-hackers mailing list
> Slony1-hackers at lists.slony.info
> http://lists.slony.info/mailman/listinfo/slony1-hackers


-- 
Steve Singer
Afilias Canada
Data Services Developer
416-673-1142


More information about the Slony1-hackers mailing list