mISDN Messages must be freed with free_msg \!\!
authorChristian Richter <christian.richter@beronet.com>
Tue, 11 Apr 2006 08:31:19 +0000 (08:31 +0000)
committerChristian Richter <christian.richter@beronet.com>
Tue, 11 Apr 2006 08:31:19 +0000 (08:31 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19160 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/misdn/isdn_lib.c

index 46cdba7..627ccca 100644 (file)
@@ -2495,7 +2495,7 @@ int handle_mgmt(msg_t *msg)
 
        if ( (frm->addr == 0) && (frm->prim == (MGR_DELLAYER|CONFIRM)) ) {
                cb_log(2, 0, "MGMT: DELLAYER|CONFIRM Addr: 0 !\n") ;
 
        if ( (frm->addr == 0) && (frm->prim == (MGR_DELLAYER|CONFIRM)) ) {
                cb_log(2, 0, "MGMT: DELLAYER|CONFIRM Addr: 0 !\n") ;
-               free(msg);
+               free_msg(msg);
                return 1;
        }
        
                return 1;
        }
        
@@ -2505,7 +2505,7 @@ int handle_mgmt(msg_t *msg)
                if (frm->prim == (MGR_DELLAYER|CONFIRM)) {
                        cb_log(2, 0, "MGMT: DELLAYER|CONFIRM Addr: %x !\n",
                                        frm->addr) ;
                if (frm->prim == (MGR_DELLAYER|CONFIRM)) {
                        cb_log(2, 0, "MGMT: DELLAYER|CONFIRM Addr: %x !\n",
                                        frm->addr) ;
-                       free(msg);
+                       free_msg(msg);
                        return 1;
                }
                
                        return 1;
                }