]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/tinfo/lib_setup.c
ncurses 6.2 - patch 20210320
[ncurses.git] / ncurses / tinfo / lib_setup.c
index 976227effade9116f1253868123a52390a2911b7..9c8b44aaea681b49e218e319a71afb4b9fab63f6 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright 2018-2019,2020 Thomas E. Dickey                                *
+ * Copyright 2018-2020,2021 Thomas E. Dickey                                *
  * Copyright 1998-2016,2017 Free Software Foundation, Inc.                  *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
@@ -49,7 +49,7 @@
 #include <locale.h>
 #endif
 
-MODULE_ID("$Id: lib_setup.c,v 1.212 2020/09/09 19:43:00 juergen Exp $")
+MODULE_ID("$Id: lib_setup.c,v 1.213 2021/03/20 14:43:35 tom Exp $")
 
 /****************************************************************************
  *
@@ -802,6 +802,7 @@ TINFO_SETUP_TERM(TERMINAL **tp,
                ret_error1(status, "unknown terminal type.\n",
                           myname, free(myname));
            } else {
+               free(myname);
                ret_error0(status, "unexpected return-code\n");
            }
        }