Mailing List Archive

ospfd memory leak
More from hasso's trawling of Marc:

http://marc.theaimsgroup.com/?l=zebra&m=102709522416331&w=4

Seems quite reasonable.

regards,
--
Paul Jakma paul@clubi.ie paul@jakma.org Key ID: 64A2FF6A
warning: do not ever send email to spam@dishone.st
Fortune:
Lots of folks confuse bad management with destiny.
-- Frank Hubbard
Re: ospfd memory leak [ In reply to ]
here is the patch but with:

- list (struct route).path renamed to paths - done mainly to make
sure every use caused a compile failure. (but also, list name should
be plural imo).

- ospf_route_new(): initialisation of the (struct route *)->paths
list. add list del function pointer, ospf_path_free() here - not in
middle of the code somewhere.

- ospf_route_free(): call list_delete on the paths linked list

- various: update (struct route *)->path to paths. Remove any list
initialisation or delete being done. (hopefully caught them all).

i can undo the first change, and it will be a /much/ smaller patch :)

regards,
--
Paul Jakma paul@clubi.ie paul@jakma.org Key ID: 64A2FF6A
warning: do not ever send email to spam@dishone.st
Fortune:
Nature always sides with the hidden flaw.
Re: ospfd memory leak [ In reply to ]
one small addendum.. missed a list_new(). see attached.

regards,
--
Paul Jakma paul@clubi.ie paul@jakma.org Key ID: 64A2FF6A
warning: do not ever send email to spam@dishone.st
Fortune:
Tomorrow's computers some time next month.
-- DEC