Index: asterisk.c =================================================================== --- asterisk.c (revision 51288) +++ asterisk.c (working copy) @@ -1656,7 +1656,9 @@ retval = CC_REFRESH; } } - free(matches); + for (i=0; matches[i]; i++) + free(matches[i]); + free(matches); } return (char *)(long)retval;