1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-26 08:55:40 +03:00

set variable to be freed

This commit is contained in:
Muhammad Nuzaihan Bin Kamal Luddin 2024-09-20 19:36:28 +08:00
parent c8f16cc97c
commit b24401e77c

View File

@ -428,10 +428,11 @@ int config_parse_refuse_record_types(
void *userdata) {
Manager *m = ASSERT_PTR(userdata);
int r;
Set *refused_records = NULL;
refused_records = set_free(refused_records);
for (const char *p = rvalue;;) {
_cleanup_free_ char *word = NULL;
r = extract_first_word(&p, &word, ",", EXTRACT_UNQUOTE);