aboutsummaryrefslogtreecommitdiffstats
path: root/asterisk.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-11-09 20:31:54 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-11-09 20:31:54 +0000
commit66a4e3b2cd0c788c74cd7a359d45242360b26e6b (patch)
tree9fa6542ab8523c4ddd39c2b76ef3c6e29fa435f4 /asterisk.c
parent91a86e54c5c92c3240d926214fb493f71a154dae (diff)
Back out "leak" fixes, as it causes segfaults
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1713 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'asterisk.c')
-rwxr-xr-xasterisk.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/asterisk.c b/asterisk.c
index 29c1645eb..8e64773f6 100755
--- a/asterisk.c
+++ b/asterisk.c
@@ -949,7 +949,6 @@ static char *cli_complete(EditLine *el, int ch)
if (matches) {
int i;
- int x;
int matches_num, maxlen, match_len;
if (matches[0][0] != '\0') {
@@ -979,10 +978,6 @@ static char *cli_complete(EditLine *el, int ch)
retval = CC_REFRESH;
}
}
- for (x=0; matches[x]; x++) {
- free(matches[x]);
- matches[x] = NULL;
- }
free(matches);
}