From 6eb0ec533e16fda1adf382c4016123b17352f070 Mon Sep 17 00:00:00 2001 From: Matthew Fredrickson <creslin@digium.com> Date: Fri, 22 Jul 2005 18:28:19 +0000 Subject: [PATCH] More minor cleanups git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6183 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_zap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/channels/chan_zap.c b/channels/chan_zap.c index e040fc3c40..b8425eb590 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -10528,8 +10528,7 @@ static int setup_zap(int reload) res = ioctl(ctlfd, ZT_SET_DIALPARAMS, &dps); if (res < 0) { ast_log(LOG_ERROR, "Invalid tone duration: %d ms\n", toneduration); - destroy_zt_pvt(&tmp); - return NULL; + return -1; } } close(ctlfd); -- GitLab