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:
58264ce
)
glite_jp_attrval_free(): clean the freed structure to be callable multiple times
author
Aleš Křenek
<ljocha@ics.muni.cz>
Thu, 26 Apr 2007 16:41:30 +0000
(16:41 +0000)
committer
Aleš Křenek
<ljocha@ics.muni.cz>
Thu, 26 Apr 2007 16:41:30 +0000
(16:41 +0000)
org.glite.jp.common/src/attr.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.jp.common/src/attr.c
b/org.glite.jp.common/src/attr.c
index
42a5cc6
..
d088009
100644
(file)
--- a/
org.glite.jp.common/src/attr.c
+++ b/
org.glite.jp.common/src/attr.c
@@
-14,6
+14,7
@@
void glite_jp_attrval_free(glite_jp_attrval_t *a,int f)
free(a->name);
free(a->value);
free(a->origin_detail);
+ memset(a,0,sizeof *a);
if (f) free(a);
}