Warnings and memory leak.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 7 Feb 2011 19:01:22 +0000 (19:01 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 7 Feb 2011 19:01:22 +0000 (19:01 +0000)
org.glite.lb.server/src/notif_match.c
org.glite.lb.server/src/notification.c

index 829c54b..961c87c 100644 (file)
@@ -46,7 +46,8 @@ int edg_wll_NotifMatch(edg_wll_Context ctx, const edg_wll_JobStat *oldstat, cons
        edg_wll_NotifId         nid = NULL;
        char    *jobq,*ju = NULL,*jobc[6];
        glite_lbu_Statement     jobs = NULL;
-       int     ret,i,authz_flags = 0;
+       int     ret,authz_flags = 0;
+       size_t i;
        time_t  expires,now = time(NULL);
        
        char *cond_where = NULL;
index 329de31..973cee9 100644 (file)
@@ -176,6 +176,7 @@ int edg_wll_NotifNewServer(
                                goto rollback;
                }
                else {
+                       free(q);
                        trio_asprintf(&q,"insert into notif_jobs(notifid,jobid) values ('%|Ss','%|Ss')",
                                        nid_s,NOTIF_ALL_JOBS);
                        glite_common_log_msg(LOG_CATEGORY_LB_SERVER_DB,
@@ -693,7 +694,7 @@ static int update_notif(
 {
        char    *nid_s = NULL, *host = NULL,
                *stmt = NULL, *aux = NULL;
-       int     ret, port = 0;
+       int     ret = 0;
 
 
        if ( !(nid_s = edg_wll_NotifIdGetUnique(nid)) )