[sr-dev] git:4.0: async: free the async item after resuming the execution

Daniel-Constantin Mierla miconda at gmail.com
Thu Feb 20 23:19:38 CET 2014


Module: sip-router
Branch: 4.0
Commit: 133f88548ba16e3b2bb2929f4655d40ccda04ea2
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=133f88548ba16e3b2bb2929f4655d40ccda04ea2

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Thu Feb 20 23:15:56 2014 +0100

async: free the async item after resuming the execution

- reported by Surendra Pullaiah

(cherry picked from commit c33583e6456d3500f8a9c870eb01a01d1a1fe8f4)
(cherry picked from commit 36c42be1a02fcb47d4b288136df81f424b690351)

---

 modules/async/async_sleep.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/async/async_sleep.c b/modules/async/async_sleep.c
index 26725c8..e486a3b 100644
--- a/modules/async/async_sleep.c
+++ b/modules/async/async_sleep.c
@@ -183,5 +183,6 @@ void async_timer_exec(unsigned int ticks, void *param)
 			break;
 		if(ai->act!=NULL)
 			tmb.t_continue(ai->tindex, ai->tlabel, ai->act);
+		shm_free(ai);
 	}
 }




More information about the sr-dev mailing list