projects
/
radsecproxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't free config object until we destroy the context.
[radsecproxy.git]
/
lib
/
radsec.c
diff --git
a/lib/radsec.c
b/lib/radsec.c
index
f8bd246
..
afb871e
100644
(file)
--- a/
lib/radsec.c
+++ b/
lib/radsec.c
@@
-142,6
+142,11
@@
void rs_context_destroy(struct rs_context *ctx)
r = r->next;
rs_free (ctx, tmp);
}
+
+ if (ctx->cfg)
+ cfg_free (ctx->cfg);
+ ctx->cfg = NULL;
+
rs_free (ctx, ctx);
}