]> Kevux Git Server - fll/commitdiff
Update: Deallocate before releasing signals.
authorKevin Day <thekevinday@gmail.com>
Wed, 30 Mar 2022 03:30:01 +0000 (22:30 -0500)
committerKevin Day <thekevinday@gmail.com>
Wed, 30 Mar 2022 03:30:01 +0000 (22:30 -0500)
This helps ensure that signals, if being controlled, are properly deallocated before allowing any signals free range.

level_3/iki_read/c/main.c
level_3/iki_write/c/main.c
level_3/status_code/c/main.c
level_3/utf8/c/main.c

index 5d3af57ee9973aba899614a9c0d48a0495da73c5..9ed1acf1418e7e957d2c98b7f657b35ec2fd87f9 100644 (file)
@@ -17,10 +17,10 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) {
 
   const f_status_t status = iki_read_main(&data, &arguments);
 
-  fll_program_standard_setdown(&data.signal);
-
   fll_program_data_delete(&data);
 
+  fll_program_standard_setdown(&data.signal);
+
   if (F_status_is_error(status)) return 1;
 
   return 0;
index 4bbf3f11dc088bfd3c75bbe2f019291ccf1aa904..b35e86cda8856a26990184cba327d421359935c0 100644 (file)
@@ -17,10 +17,10 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) {
 
   const f_status_t status = iki_write_main(&data, &arguments);
 
-  fll_program_standard_setdown(&data.signal);
-
   fll_program_data_delete(&data);
 
+  fll_program_standard_setdown(&data.signal);
+
   if (F_status_is_error(status)) return 1;
 
   return 0;
index 38bddf5728098ae4d7a99f6f80fc15ad6194d652..6fd7860de8c8d9df8ab73b39faf052c9c4a7ca27 100644 (file)
@@ -17,10 +17,10 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) {
 
   const f_status_t status = status_code_main(&data, &arguments);
 
-  fll_program_standard_setdown(&data.signal);
-
   fll_program_data_delete(&data);
 
+  fll_program_standard_setdown(&data.signal);
+
   if (F_status_is_error(status)) return 1;
 
   return 0;
index cacae5f0a5df5f188d879d61f8a2d0f976d10a95..0dc25a5971dd3d1e02f2a364dc969c9c1f4bcc6d 100644 (file)
@@ -17,10 +17,10 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) {
 
   const f_status_t status = utf8_main(&data, &arguments);
 
-  fll_program_standard_setdown(&data.signal);
-
   fll_program_data_delete(&data);
 
+  fll_program_standard_setdown(&data.signal);
+
   if (F_status_is_error(status)) return 1;
 
   return 0;