summaryrefslogtreecommitdiff
path: root/lib/srv6.h
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2022-10-29 19:56:07 -0400
committerGitHub <noreply@github.com>2022-10-29 19:56:07 -0400
commitb7128471c6c4022b90cfd56667f767cf50931e6c (patch)
treef78d59f1971cce2dbd3a8c42b96b06d7066fb8b2 /lib/srv6.h
parent5ac678c59994e7c0b435decd098cb051a6e5a4f9 (diff)
parentefae8c26cbb10762a6d87056f4e443e4043c5e36 (diff)
Merge pull request #12224 from cscarpitta/fix/enhance-srv6-locator-chunk-free-api
bgpd: Enhance the `srv6_locator_chunk_free()` API by automatically setting the pointer to the freed memory to `NULL`
Diffstat (limited to 'lib/srv6.h')
-rw-r--r--lib/srv6.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/srv6.h b/lib/srv6.h
index 6e0c3ce99d..18d5bdebc2 100644
--- a/lib/srv6.h
+++ b/lib/srv6.h
@@ -187,7 +187,7 @@ int snprintf_seg6_segs(char *str,
extern struct srv6_locator *srv6_locator_alloc(const char *name);
extern struct srv6_locator_chunk *srv6_locator_chunk_alloc(void);
extern void srv6_locator_free(struct srv6_locator *locator);
-extern void srv6_locator_chunk_free(struct srv6_locator_chunk *chunk);
+extern void srv6_locator_chunk_free(struct srv6_locator_chunk **chunk);
json_object *srv6_locator_chunk_json(const struct srv6_locator_chunk *chunk);
json_object *srv6_locator_json(const struct srv6_locator *loc);
json_object *srv6_locator_detailed_json(const struct srv6_locator *loc);