summaryrefslogtreecommitdiff
path: root/main/manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/manager.c')
-rw-r--r--main/manager.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/main/manager.c b/main/manager.c
index 1c5d12395..0c5d76a19 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -7496,11 +7496,16 @@ generic_callback_out:
ast_free(http_header);
ast_free(out);
- if (session && blastaway) {
- session_destroy(session);
- } else if (session && session->f) {
- fclose(session->f);
- session->f = NULL;
+ if (session) {
+ if (blastaway) {
+ session_destroy(session);
+ } else {
+ if (session->f) {
+ fclose(session->f);
+ session->f = NULL;
+ }
+ unref_mansession(session);
+ }
}
return 0;