Memory leak

James Devine fxmulder at
Thu Sep 9 20:50:49 CEST 2010

I've noticed if I set a hint such as

        NAS-IP-Address := "%{Packet-Src-IP-Address}"

I end up with a memory leak that valgrind shows as:

==14825== 429,936 bytes in 1,378 blocks are definitely lost in loss
record 332 of 332
==14825==    at 0x4C284A8: malloc (vg_replace_malloc.c:236)
==14825==    by 0x4E433C4: paircopyvp (valuepair.c:318)
==14825==    by 0x4E43484: paircopy2 (valuepair.c:351)
==14825==    by 0x88B5733: hints_setup (rlm_preprocess.c:350)
==14825==    by 0x88B59F1: preprocess_authorize (rlm_preprocess.c:562)
==14825==    by 0x41B824: modcall (modcall.c:297)
==14825==    by 0x4182B5: indexed_modcall (modules.c:716)
==14825==    by 0x4090D5: rad_authenticate (auth.c:565)
==14825==    by 0x425F44: radius_handle_request (event.c:3735)
==14825==    by 0x41DEB4: thread_pool_addrequest (threads.c:842)
==14825==    by 0x4272FD: event_socket_handler (event.c:3384)
==14825==    by 0x4E46EEA: fr_event_loop (event.c:411)

I tested this on freeradius 2.1.9

More information about the Freeradius-Devel mailing list