]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Do not reference the freed outgoing structure in the debug message. (issue #8425...
authorJoshua Colp <jcolp@digium.com>
Mon, 27 Nov 2006 15:30:37 +0000 (15:30 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 27 Nov 2006 15:30:37 +0000 (15:30 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48037 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx/pbx_spool.c

index a91a7e255bb49e2570b0ae12aa60a30a8d43e808..187beda1c3c6286df707eaaf3207ea34baa27745 100644 (file)
@@ -315,8 +315,8 @@ static int scan_service(char *fn, time_t now, time_t atime)
                                        now += o->retrytime;
                                        if (o->callingpid && (o->callingpid == ast_mainpid)) {
                                                safe_append(o, time(NULL), "DelayedRetry");
-                                               free_outgoing(o);
                                                ast_log(LOG_DEBUG, "Delaying retry since we're currently running '%s'\n", o->fn);
+                                               free_outgoing(o);
                                        } else {
                                                /* Increment retries */
                                                o->retries++;