@@ -142,6 +142,9 @@ int t_resume_async(int fd, void *param)
142
142
/* no need for the context anymore */
143
143
shm_free (ctx );
144
144
145
+ context_destroy (CONTEXT_GLOBAL , current_processing_ctx );
146
+ pkg_free (current_processing_ctx );
147
+
145
148
restore :
146
149
/* restore original environment */
147
150
set_t (backup_t );
@@ -152,8 +155,6 @@ int t_resume_async(int fd, void *param)
152
155
bind_address = backup_si ;
153
156
154
157
free_faked_req ( & faked_req , t );
155
- context_destroy (CONTEXT_GLOBAL , current_processing_ctx );
156
- pkg_free (current_processing_ctx );
157
158
current_processing_ctx = NULL ;
158
159
159
160
return 0 ;
@@ -176,7 +177,7 @@ int t_handle_async(struct sip_msg *msg, struct action* a , int resume_route)
176
177
r = t_newtran ( msg , 1 /*full uas clone*/ );
177
178
if (r == 0 ) {
178
179
/* retransmission -> no follow up; we return a negative
179
- * code to indicate do_action that the top route is
180
+ * code to indicate do_action that the top route is
180
181
* is completed (there no resume route to follow) */
181
182
return -1 ;
182
183
} else if (r < 0 ) {
@@ -220,7 +221,7 @@ int t_handle_async(struct sip_msg *msg, struct action* a , int resume_route)
220
221
goto resume ;
221
222
}
222
223
223
- /* do we have a reactor in this process, to handle this
224
+ /* do we have a reactor in this process, to handle this
224
225
asyn I/O ? */
225
226
if ( 0 /*reactor_exists()*/ ) {
226
227
/* no reactor, so we directly call the resume function
0 commit comments