# HG changeset patch # User Matthias Goergens # Date 1272293888 -3600 # Node ID 961c6812e8e8a01153d6cfdec5c7b00d6ea4aed1 # Parent f1ab4779c11a362c4fd460ad58a0425eaa877496 camldm/camldm_stubs.c: Tests have confirmed that camldm_ls does not leak memory. A comment in the file reflects this finding. Signed-off-by: Matthias Goergens diff -r f1ab4779c11a -r 961c6812e8e8 camldm/camldm_stubs.c --- a/camldm/camldm_stubs.c +++ b/camldm/camldm_stubs.c @@ -238,9 +238,13 @@ CAMLreturn0; } -// may leak memory. who knows? (Does the c function I copied this -// from (dmsetup.c) care about memory? dmsetup exits shortly after executing -// it. +/* + May leak memory. who knows? (Does the c function (_process_all) + where I copied this from (dmsetup.c) care about memory? dmsetup + exits shortly after executing it. After testing: It does not seem + to leak. Probably "dm_task_destroy(dmt);" is doing some cleaning + up. +*/ #define none Val_int(0) #define Tag_some Val_int(0) value camldm_ls()