From 54ae1d95a43ac73aaae007990c102358cec43d30 Mon Sep 17 00:00:00 2001 From: Nicolas PLANEL Date: Tue, 26 Aug 2014 10:23:37 -0400 Subject: [PATCH] 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 --- lib/xfrm/sp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/xfrm/sp.c b/lib/xfrm/sp.c index 76cdc61..74e9484 100644 --- a/lib/xfrm/sp.c +++ b/lib/xfrm/sp.c @@ -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); }