summaryrefslogtreecommitdiff
path: root/main/logger.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/logger.c')
-rw-r--r--main/logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/logger.c b/main/logger.c
index 163548908..82a3be04b 100644
--- a/main/logger.c
+++ b/main/logger.c
@@ -584,7 +584,7 @@ static int rotate_file(const char *filename)
if (ast_safe_system(buf) != -1) {
ast_log(LOG_WARNING, "error executing '%s'\n", buf);
}
- ast_channel_free(c);
+ c = ast_channel_release(c);
}
return res;
}