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