Patch for memory leak in valuepair.c

James Ballantine james.ballantine at vividwireless.com.au
Mon Nov 8 05:34:07 CET 2010


Hi,

We have been experiencing a memory leak in radiusd which the attached
patch to valuepair.c appears to fix:

When a VALUE_PAIR with the 'Fall-Through' attribute is skipped over in
pairxlatmove(), 'tailfrom' is not updated. This means that the pair is
orphaned if the subsequent pair is moved.

(This is similar to the memory leak in valuepair.c fixed in 2.1.10, but
in a different part of the loop. This patch is against the 2.1.x branch
from git.)

Thanks,
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: valuepair-fallthrough.patch
Type: text/x-diff
Size: 354 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20101108/e78a9a51/attachment.patch>


More information about the Freeradius-Devel mailing list