diff options
Diffstat (limited to 'pimd/pim_hello.c')
| -rw-r--r-- | pimd/pim_hello.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/pimd/pim_hello.c b/pimd/pim_hello.c index 138a110d3a..08a1432bb0 100644 --- a/pimd/pim_hello.c +++ b/pimd/pim_hello.c @@ -125,9 +125,9 @@ static void tlv_trace_list(const char *label, const char *tlv_name,  	}  } -#define FREE_ADDR_LIST                                                         \ -	if (hello_option_addr_list) {                                          \ -		list_delete(hello_option_addr_list);                           \ +#define FREE_ADDR_LIST							\ +	if (hello_option_addr_list) {					\ +		list_delete_and_null(&hello_option_addr_list);		\  	}  #define FREE_ADDR_LIST_THEN_RETURN(code)                                       \  | 
