From ccb56c93e63d8e529d8dd013632294573c149fbc Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 12 May 2022 19:43:23 +0900 Subject: [PATCH] [client] Free default input config plist Yet another memory leak. --- libs/client/cl_input.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/client/cl_input.c b/libs/client/cl_input.c index 81d5e32ac..7830aa830 100644 --- a/libs/client/cl_input.c +++ b/libs/client/cl_input.c @@ -456,7 +456,9 @@ CL_Legacy_Init (void) OK_Init (); Cmd_AddCommand ("bind", cl_bind_f, "compatibility wrapper for in_bind"); Cmd_AddCommand ("unbind", cl_unbind_f, "compatibility wrapper for in_bind"); - IN_LoadConfig (PL_GetPropertyList (default_input_config, 0)); + plitem_t *cfg = PL_GetPropertyList (default_input_config, 0); + IN_LoadConfig (cfg); + PL_Free (cfg); } void