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

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


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

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

---

 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