Memory alloc/free cleanup for contexts.
authorLinus Nordberg <linus@nordu.net>
Mon, 21 Mar 2011 13:32:31 +0000 (14:32 +0100)
committerLinus Nordberg <linus@nordu.net>
Mon, 21 Mar 2011 13:32:31 +0000 (14:32 +0100)
commita177887c740c173948fc7dbf96f726616885c407
treed6ff0e9cdd8cc9fd614ec118d04bc1d010df291a
parent6cefe9483fda567d9db2447bda2f09f63d1101af
Memory alloc/free cleanup for contexts.

(rs_context_create): Don't touch *ctx on failure.  Keep allocation and
zeroing of allocated memory together.

(rs_context_destroy): Fix typo.
(rs_context_destroy): Don't rs_free the context since it's allocated
with calloc.
lib/radsec.c