commit 9d7cc96: [Minor] Free the proper pointer

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Sep 23 10:35:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-09-23 11:08:49 +0100
URL: https://github.com/rspamd/rspamd/commit/9d7cc9693c2d25b99ab1035c7f5c77e30d32dfd3 (HEAD -> master)

[Minor] Free the proper pointer

---
 src/libserver/maps/map_helpers.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libserver/maps/map_helpers.c b/src/libserver/maps/map_helpers.c
index e06a7fbda..9ac84a81e 100644
--- a/src/libserver/maps/map_helpers.c
+++ b/src/libserver/maps/map_helpers.c
@@ -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;


More information about the Commits mailing list