Project

General

Profile

Revision 28c57bc8

View differences:

src/libs/plugins/backends/aqhbci/applayer/cbox_queue.c
147 147
    /* jq now contains all jobs to be executed */
148 148
    rv=AH_OutboxCBox_SendAndRecvQueue(cbox, dlg, jq);
149 149
    if (rv) {
150
      _handleQueueError(cbox, jq, "Error performing queue");
151
      AH_JobQueue_free(jq);
150
      _handleQueueError(cbox, jq, "Error performing queue"); /* frees jobQueue */
152 151
      return rv;
153 152
    } /* if error */
154 153
  } /* for */
......
468 467

  
469 468
void _handleQueueListError(AH_OUTBOX_CBOX *cbox, AH_JOBQUEUE_LIST *jql, const char *logStr)
470 469
{
471
  AH_JOBQUEUE *jq;
470
  if (jql) {
471
    AH_JOBQUEUE *jq;
472 472

  
473
  while ((jq=AH_JobQueue_List_First(jql))) {
474
    AH_JobQueue_List_Del(jq);
475
    _handleQueueError(cbox, jq, logStr);
476
  } /* while */
477
  AH_JobQueue_List_free(jql);
473
    while ((jq=AH_JobQueue_List_First(jql))) {
474
      AH_JobQueue_List_Del(jq);
475
      _handleQueueError(cbox, jq, logStr);
476
    } /* while */
477
    AH_JobQueue_List_free(jql);
478
  }
478 479
}
479 480

  
480 481

  

Also available in: Unified diff