mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 22:29:23 +00:00
lib: dont null check bitfield pointer before free
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
1be1ca35c7
commit
1ac10b15b1
@ -152,10 +152,8 @@ typedef unsigned int word_t;
|
|||||||
*/
|
*/
|
||||||
#define bf_free(v) \
|
#define bf_free(v) \
|
||||||
do { \
|
do { \
|
||||||
if ((v).data) { \
|
free((v).data); \
|
||||||
free((v).data); \
|
(v).data = NULL; \
|
||||||
(v).data = NULL; \
|
|
||||||
} \
|
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
Reference in New Issue
Block a user