mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-01 02:48:48 +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 { \
|
do { \
|
||||||
if ((v).data) { \
|
if ((v).data) { \
|
||||||
free((v).data); \
|
free((v).data); \
|
||||||
|
(v).data = NULL; \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user