mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-31 06:56:13 +00:00
lib: clear data pointer in bf_free
Help avoid double-free by clearing data pointer. Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
parent
4110aa2cb3
commit
193848fff6
@ -154,6 +154,7 @@ typedef unsigned int word_t;
|
||||
do { \
|
||||
if ((v).data) { \
|
||||
free((v).data); \
|
||||
(v).data = NULL; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user