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:
parent
8cd946a683
commit
54ae1d95a4
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue