@cryptotaxi247 / netdata-1 / commits / a833f6674

Fix memory corruption (#15724)

Delay free

Stelios Fragkakis committed Aug 3, 2023 at 15:38 UTC a833f6674f09011b2e0134f045c4c8a39be8de75
1 file changed +2 -1
database/contexts/api_v2.c
+2 -1
@@ -1114,8 +1114,9 @@ static bool contexts_conflict_callback(const DICTIONARY_ITEM *item __maybe_unuse
1114 }
1115 else {
1116 // merge
1117 - string_freez(o->family);
1117 + STRING *old_family = o->family;
1118 o->family = string_2way_merge(o->family, n->family);
1119 + string_freez(old_family);
1120 }
1121 }
1122