Skip to content

Commit 91b2d96

Browse files
committed
cleanup: addons/51degrees/51d.c: add missing var initialization
addons/51degrees/51d.c:1076:8: error: Uninitialized variable: _51d_prop_name.name [uninitvar]
1 parent a9066f4 commit 91b2d96

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

addons/51degrees/51d.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ static int init_51degrees(void)
10531053

10541054
static void deinit_51degrees(void)
10551055
{
1056-
struct _51d_property_names *_51d_prop_name, *_51d_prop_nameb;
1056+
struct _51d_property_names *_51d_prop_name = NULL, *_51d_prop_nameb = NULL;
10571057

10581058
#if defined(FIFTYONEDEGREES_H_PATTERN_INCLUDED) || defined(FIFTYONEDEGREES_H_TRIE_INCLUDED)
10591059
free(global_51degrees.header_names);
@@ -1073,6 +1073,7 @@ static void deinit_51degrees(void)
10731073
ha_free(&global_51degrees.data_file_path);
10741074
list_for_each_entry_safe(_51d_prop_name, _51d_prop_nameb, &global_51degrees.property_names, list) {
10751075
LIST_DELETE(&_51d_prop_name->list);
1076+
free(_51d_prop_name->name);
10761077
free(_51d_prop_name);
10771078
}
10781079

0 commit comments

Comments
 (0)