aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--channels/chan_dahdi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index e47b56107..6111b160b 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -12175,6 +12175,7 @@ static int process_dahdi(struct dahdi_chan_conf *confp, const char *cat, struct
res = ioctl(ctlfd, DAHDI_SET_DIALPARAMS, &dps);
if (res < 0) {
ast_log(LOG_ERROR, "Invalid tone duration: %d ms: %s\n", toneduration, strerror(errno));
+ close(ctlfd);
return -1;
}
}