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:
f88eb68
)
set owners=NULL after freeing (can be realloced)
author
Aleš Křenek
<ljocha@ics.muni.cz>
Mon, 30 Apr 2007 12:08:09 +0000
(12:08 +0000)
committer
Aleš Křenek
<ljocha@ics.muni.cz>
Mon, 30 Apr 2007 12:08:09 +0000
(12:08 +0000)
org.glite.jp.primary/src/feed.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.jp.primary/src/feed.c
b/org.glite.jp.primary/src/feed.c
index
0963d17
..
315f269
100644
(file)
--- a/
org.glite.jp.primary/src/feed.c
+++ b/
org.glite.jp.primary/src/feed.c
@@
-444,11
+444,9
@@
static void drop_jobs(struct jpfeed *f)
free(f->jobs[i]);
free(f->owners[i]);
}
- free(f->job_attrs);
- free(f->jobs);
- free(f->owners);
- f->job_attrs = NULL;
- f->jobs = NULL;
+ free(f->job_attrs); f->job_attrs = NULL;
+ free(f->jobs); f->jobs = NULL;
+ free(f->owners); f->owners = NULL;
f->njobs = 0;
}