projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1488a9c
)
free allocated memory
author
aland
<aland>
Fri, 11 Jul 2003 14:12:06 +0000
(14:12 +0000)
committer
aland
<aland>
Fri, 11 Jul 2003 14:12:06 +0000
(14:12 +0000)
src/modules/rlm_radutmp/rlm_radutmp.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_radutmp/rlm_radutmp.c
b/src/modules/rlm_radutmp/rlm_radutmp.c
index
ca858ed
..
0b48adb
100644
(file)
--- a/
src/modules/rlm_radutmp/rlm_radutmp.c
+++ b/
src/modules/rlm_radutmp/rlm_radutmp.c
@@
-113,7
+113,8
@@
static int radutmp_detach(void *instance)
next = p->next;
free(p);
}
- free(inst->filename);
+ if (inst->filename) free(inst->filename);
+ if (inst->username) free(inst->username);
free(inst);
return 0;
}