fix a memleak in pref.c:custom_args_compare_func()