From: Miloš Mulač Date: Fri, 11 Sep 2009 13:54:25 +0000 (+0000) Subject: memleaks X-Git-Tag: glite-security-gss_R_2_0_1_1~68 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=9be3461ddb870b9c68a1cc026bdee6a8d5cc0478;p=jra1mw.git memleaks --- diff --git a/org.glite.lb.server/src/store.c.T b/org.glite.lb.server/src/store.c.T index b64dd78..6f614cd 100644 --- a/org.glite.lb.server/src/store.c.T +++ b/org.glite.lb.server/src/store.c.T @@ -125,6 +125,7 @@ int edg_wll_StoreEvent(edg_wll_Context ctx,edg_wll_Event *e,const char *ulm,int if (edg_wll_ExecSQL(ctx,stmt,&sh) < 0 || edg_wll_FetchRow(ctx,sh,1,NULL,&max) < 0) goto clean; glite_lbu_FreeStmt(&sh); + free(stmt); next = (max && *max) ? atoi(max) : 0; free(max); @@ -374,6 +375,7 @@ err: if (stmt) glite_lbu_FreeStmt(&stmt); free(subj); free(userid); + free(unique); if (q) free(q); if (owner) free(owner);