--- freem/src/global_dispatch.c	2025/01/19 02:04:04	1.1.1.1
+++ freem/src/global_dispatch.c	2025/03/29 16:50:42	1.6
@@ -1,23 +1,11 @@
 /*
- *                            *
- *                           * *
- *                          *   *
- *                     ***************
- *                      * *       * *
- *                       *  MUMPS  *
- *                      * *       * *
- *                     ***************
- *                          *   *
- *                           * *
- *                            *
- *
- *   global_dispatch.c
+ *   $Id: global_dispatch.c,v 1.6 2025/03/29 16:50:42 snw Exp $
  *    global handler dispatch module
  *
  *  
- *   Author: Serena Willis <jpw@coherent-logic.com>
+ *   Author: Serena Willis <snw@coherent-logic.com>
  *    Copyright (C) 1998 MUG Deutschland
- *    Copyright (C) 2020 Coherent Logic Development LLC
+ *    Copyright (C) 2020, 2025 Coherent Logic Development LLC
  *
  *
  *   This file is part of FreeM.
@@ -35,6 +23,19 @@
  *   You should have received a copy of the GNU Affero Public License
  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
  *
+ *   $Log: global_dispatch.c,v $
+ *   Revision 1.6  2025/03/29 16:50:42  snw
+ *   Back to cvs-current as version for development; temp fix for double-free issue in global_dispatch
+ *
+ *   Revision 1.5  2025/03/24 04:13:11  snw
+ *   Replace action macro dat with fra_dat to avoid symbol conflict on OS/2
+ *
+ *   Revision 1.4  2025/03/09 19:14:25  snw
+ *   First phase of REUSE compliance and header reformat
+ *
+ *
+ * SPDX-FileCopyrightText:  (C) 2025 Coherent Logic Development LLC
+ * SPDX-License-Identifier: AGPL-3.0-or-later
  **/
 
 #include <stdlib.h>
@@ -292,7 +293,7 @@ void global (short action, char *key, ch
     }
 
     
-    if ((r->name[1] == '|')) {
+    if (r->name[1] == '|') {
 
         /* this is an mdc-style extended reference */
         
@@ -429,7 +430,7 @@ void global (short action, char *key, ch
             case get_sym:
                 sprintf (an, "GET");
                 break;
-            case dat:
+            case fra_dat:
                 sprintf (an, "DATA");
                 break;
             case fra_order:
@@ -471,7 +472,7 @@ void global (short action, char *key, ch
         evt_enqueue (ev_id, EVT_CLS_TRIGGER, 0);
 
         free (k_buf);
-        free (d_buf);
+        /* free (d_buf); */
     }  
     
     free (old_value);