]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Free the proper pointer
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 23 Sep 2021 10:08:49 +0000 (11:08 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 23 Sep 2021 10:29:42 +0000 (11:29 +0100)
src/libserver/maps/map_helpers.c

index e06a7fbda635f7df1ec7002465f34c0e804dda95..9ac84a81efe8b95b5e4f232d5c835b9dafd6313c 100644 (file)
@@ -411,7 +411,7 @@ rspamd_parse_kv_list (
                                func (data->cur_data, stripped_key, default_value);
                                msg_debug_map ("insert key only pair: %s -> %s",
                                                stripped_key, default_value);
-                               g_free (stripped_key);
+                               g_free (key);
                                key = NULL;
                        }
                        break;