xfrm: fix calling free() with a bad pointer

sp->sec_ctx->ctx is a zero-length member, so it's already allocated

https://github.com/thom311/libnl/pull/61

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Nicolas PLANEL 2014-08-26 10:23:37 -04:00 committed by Thomas Haller
parent 8cd946a683
commit 54ae1d95a4

View file

@ -94,7 +94,6 @@ static void xfrm_sp_free_data(struct nl_object *c)
if(sp->sec_ctx)
{
free (sp->sec_ctx->ctx);
free (sp->sec_ctx);
}