Patch for memory leak in valuepair.c

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


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.)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: valuepair-fallthrough.patch
Type: text/x-diff
Size: 354 bytes
Desc: not available
URL: <>

More information about the Freeradius-Devel mailing list