]> Kevux Git Server - fll/commitdiff
Security: free the memory of the environment variables map.
authorKevin Day <thekevinday@gmail.com>
Sun, 20 Dec 2020 00:18:06 +0000 (18:18 -0600)
committerKevin Day <thekevinday@gmail.com>
Sun, 20 Dec 2020 00:18:06 +0000 (18:18 -0600)
Immediately after pushing my previous commit I suddenly noticed that I forgot to delete the newly added environment variables map.

level_3/controller/c/private-rule.c

index 241a965f53c5e42e34d4c8930175c1bac6d1e277..666ec894521d0f697e1dbfdb5131c7bd26a6861d 100644 (file)
@@ -491,6 +491,8 @@ extern "C" {
       if (status == F_child || status == F_signal) break;
     } // for
 
+    fl_string_maps_delete(&environment);
+
     return status;
   }
 #endif // _di_controller_rule_execute_