]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Revert "Fix #7998 About dir crashing for client intiated backup"
authorMichal Rakowski <michal.rakowski@baculasystems.com>
Tue, 10 Aug 2021 10:44:23 +0000 (12:44 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:03 +0000 (09:03 +0100)
This reverts commit c891dfd15fda4841ed8f6c69b6db7c43c80fb026.

bacula/src/dird/ua_run.c

index fa83f8e161b34790a6dd14a7da41c0c3827b1add..929e8a489222e8455ccf06305aac832a66059c62 100644 (file)
@@ -303,15 +303,13 @@ static JobId_t start_job(UAContext *ua, JCR *jcr, run_ctx &rc)
    }
    Dmsg4(100, "JobId=%u NewJobId=%d pool=%s priority=%d\n", (int)jcr->JobId,
          JobId, jcr->pool->name(), jcr->JobPriority);
+   free_jcr(jcr);                  /* release jcr */
    if (JobId == 0) {
       ua->error_msg(_("Job %s failed.\n"), edit_int64(rc.jr.JobId, ed1));
 
    } else {
       ua->send_msg(_("Job queued. JobId=%s\n"), edit_int64(JobId, ed1));
    }
-
-   free_jcr(jcr);                  /* release jcr */
-
    if (rc.fdcalled) {
       ua->signal(BNET_FDCALLED); /* After this point, this is a new connection */
       ua->UA_sock = new_bsock();