git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1eb6f9a
)
Fix arrieved timestamp overwrite and memory leaks in new implementation
author
Zdeněk Salvet
<salvet@ics.muni.cz>
Thu, 24 Jul 2008 14:46:47 +0000
(14:46 +0000)
committer
Zdeněk Salvet
<salvet@ics.muni.cz>
Thu, 24 Jul 2008 14:46:47 +0000
(14:46 +0000)
of edg_wll_get_event_flesh().
org.glite.lb.server/src/get_events.c.T
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/src/get_events.c.T
b/org.glite.lb.server/src/get_events.c.T
index
03d0908
..
c7c245e
100644
(file)
--- a/
org.glite.lb.server/src/get_events.c.T
+++ b/
org.glite.lb.server/src/get_events.c.T
@@
-44,6
+44,10
@@
int edg_wll_get_event_flesh(edg_wll_Context ctx,int n,edg_wll_Event *e)
// nasty ;-)
edg_wll_ParseEvent(ctx,nameval[0],&f);
free(nameval[0]);
+
+ f->any.arrived = e->any.arrived;
+ edg_wll_FreeEvent(e);
+
memcpy(e, f, sizeof *e);
free(f);
ret=edg_wll_CheckEvent(ctx,e);