projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2effe6
)
Be more careful freeing memory in detail reader
author
Alan T. DeKok
<aland@freeradius.org>
Mon, 26 Jul 2010 14:50:50 +0000
(16:50 +0200)
committer
Alan T. DeKok
<aland@freeradius.org>
Mon, 26 Jul 2010 14:54:41 +0000
(16:54 +0200)
src/main/detail.c
patch
|
blob
|
history
diff --git
a/src/main/detail.c
b/src/main/detail.c
index
f03933c
..
0838f37
100644
(file)
--- a/
src/main/detail.c
+++ b/
src/main/detail.c
@@
-728,9
+728,13
@@
void detail_free(rad_listen_t *this)
listen_detail_t *data = this->data;
free(data->filename);
+ data->filename = NULL;
pairfree(&data->vps);
- if (data->fp != NULL) fclose(data->fp);
+ if (data->fp != NULL) {
+ fclose(data->fp);
+ data->fp = NULL;
+ }
}