summaryrefslogtreecommitdiffstats
path: root/lib/srv6.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/srv6.c')
-rw-r--r--lib/srv6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/srv6.c b/lib/srv6.c
index 306d92ae3..a8ec6f2b7 100644
--- a/lib/srv6.c
+++ b/lib/srv6.c
@@ -157,9 +157,9 @@ void srv6_locator_free(struct srv6_locator *locator)
}
}
-void srv6_locator_chunk_free(struct srv6_locator_chunk *chunk)
+void srv6_locator_chunk_free(struct srv6_locator_chunk **chunk)
{
- XFREE(MTYPE_SRV6_LOCATOR_CHUNK, chunk);
+ XFREE(MTYPE_SRV6_LOCATOR_CHUNK, *chunk);
}
json_object *srv6_locator_chunk_json(const struct srv6_locator_chunk *chunk)