[zebra] IRDP: Move stream_free to where its created, probably fixing a leak
commit36943749147bef10df8ffc0e2ad79f4dd06cd9ac
authorPaul Jakma <paul.jakma@sun.com>
Fri, 4 Aug 2006 06:18:04 +0000 (4 06:18 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Fri, 4 Aug 2006 06:18:04 +0000 (4 06:18 +0000)
tree17f031ea7faf31f94e7e7adfaace741ca4d17e39
parent7e4bcdc1d6d0e0338fe5cac6103dd485332e7b51
[zebra] IRDP: Move stream_free to where its created, probably fixing a leak

2006-08-01 Paul Jakma <paul.jakma@sun.com>

* irdp_main.c: (irdp_advertisement) free the stream here, when done,
  right under where it was allocated so it's blindingly obvious
  it's correct. This possibly fixes a very slow leak of streams in
  zebra.
* irdp_packet.c: (send_packet) don't free the stream here as
  it's hard to tell if right, plus an error case seemed to
  returning before free anyway.
zebra/ChangeLog
zebra/irdp_main.c
zebra/irdp_packet.c