From: Jiří Škrábal Date: Wed, 20 Jul 2005 10:00:10 +0000 (+0000) Subject: - do not free noallocated string X-Git-Tag: merge_for_1_3_dst~5 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=7a70569bcbda8810aa41b633158eb7ab8285656b;p=jra1mw.git - do not free noallocated string --- diff --git a/org.glite.lb.common/src/lb_maildir.c b/org.glite.lb.common/src/lb_maildir.c index 6711663..4155918 100644 --- a/org.glite.lb.common/src/lb_maildir.c +++ b/org.glite.lb.common/src/lb_maildir.c @@ -90,7 +90,6 @@ int edg_wll_MaildirStoreMsg( snprintf(lbm_errdesc, MAX_ERR_LEN, "Maximum tries limit reached with unsuccessful file creation"); return -1; } - if ( fname ) free(fname); snprintf(fname, PATH_MAX, "%s/%s/%ld.%d.%s", root, dirs[LBMD_DIR_TMP], time(NULL), getpid(), srvname); if ( (fhnd = open(fname, O_CREAT|O_EXCL|O_WRONLY, 00600)) < 0 ) { if ( errno == EEXIST ) { sleep(2); continue; }