aboutsummaryrefslogtreecommitdiffstats
path: root/asterisk.c
diff options
context:
space:
mode:
authorautomerge <automerge@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-22 17:22:37 +0000
committerautomerge <automerge@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-22 17:22:37 +0000
commitcfc369cefa6309a56a2eb9f42ab1d72910b2aa95 (patch)
tree4753867bb95e326a09f1f7af1720bb4040854acd /asterisk.c
parent9e4e3861f451d004c7a4cc881375d2ad304f6ab6 (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@51403 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'asterisk.c')
-rw-r--r--asterisk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/asterisk.c b/asterisk.c
index bc15eb5c7..d3b3989de 100644
--- a/asterisk.c
+++ b/asterisk.c
@@ -1656,7 +1656,9 @@ static char *cli_complete(EditLine *el, int ch)
retval = CC_REFRESH;
}
}
- free(matches);
+ for (i=0; matches[i]; i++)
+ free(matches[i]);
+ free(matches);
}
return (char *)(long)retval;