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:
6fbd7f8
)
memleak
author
Aleš Křenek
<ljocha@ics.muni.cz>
Thu, 16 Oct 2008 15:00:56 +0000
(15:00 +0000)
committer
Aleš Křenek
<ljocha@ics.muni.cz>
Thu, 16 Oct 2008 15:00:56 +0000
(15:00 +0000)
org.glite.lb.client/src/stat_fields.cpp
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.client/src/stat_fields.cpp
b/org.glite.lb.client/src/stat_fields.cpp
index
339d56c
..
2add445
100644
(file)
--- a/
org.glite.lb.client/src/stat_fields.cpp
+++ b/
org.glite.lb.client/src/stat_fields.cpp
@@
-77,9
+77,10
@@
void glite_lb_print_stat_fields(void **ff,edg_wll_JobStat *s)
std::string val;
struct timeval t;
JobStatus::Attr attr;
- char *jdl_param = NULL;
+ char *jdl_param = NULL
,*jobid_s = NULL
;
- std::cout << glite_jobid_unparse(s->jobId) << '\t' << stat.name() << '\t';
+ std::cout << (jobid_s = glite_jobid_unparse(s->jobId)) << '\t' << stat.name() << '\t';
+ free(jobid_s);
for (f = fields->begin(); f != fields->end(); f++) {
for (a = attrs.begin(); a != attrs.end() && a->first != f->first; a++);