From 4d2368f20210b084ebba4d3ff56a1daf04c86f07 Mon Sep 17 00:00:00 2001
From: Olle Johansson <oej@edvina.net>
Date: Tue, 4 Dec 2007 15:16:03 +0000
Subject: [PATCH] (closes issue #11431) Reported by: Laureano Patches:      
 app_queue.c.patch uploaded by Laureano (license 265)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90854 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_queue.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/apps/app_queue.c b/apps/app_queue.c
index 441eab0213..a6cf340be3 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -729,15 +729,15 @@ static void *device_state_thread(void *data)
 
 		handle_statechange(sc);
 
-		free(sc);
+		ast_free(sc);
 		sc = NULL;
 	}
 
 	if (sc)
-		free(sc);
+		ast_free(sc);
 
 	while ((sc = AST_LIST_REMOVE_HEAD(&device_state.state_change_q, entry)))
-		free(sc);
+		ast_free(sc);
 
 	return NULL;
 }
@@ -2829,7 +2829,7 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce
 				break;
 		} else {
 			ao2_ref(cur, -1);
-			free(tmp);
+			ast_free(tmp);
 		}
 	}
 	if (qe->expire && (!qe->parent->timeout || (qe->expire - now) <= qe->parent->timeout))
-- 
GitLab