" and (j.jobid = '%|Ss' or j.jobid = '%|Ss' %s) %s",
ju = edg_wlc_JobIdGetUnique(stat->jobId),NOTIF_ALL_JOBS,cond_where ? cond_where : "",cond_and_where ? cond_and_where : "");
- free(ju);
+ free(ju); ju = NULL;
if (edg_wll_ExecSQL(ctx,jobq,&jobs) < 0) goto err;
char *dest, *aux;
int port;
- if (debug) fprintf(stderr,"NOTIFY: %s, job %s\n",jobc[0],
+ if (debug) {
+ fprintf(stderr,"NOTIFY: %s, job %s\n",jobc[0],
ju = edg_wlc_JobIdGetUnique(stat->jobId));
- free(ju);
+ free(ju); ju = NULL;
+ }
dest = strdup(jobc[1]);
if ( !(aux = strchr(dest, ':')) )