-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: rxvt-unicode-sixel
action: commit
revision:
path_from:
revision_from: 936251ee4dbcb939378a724e0e11009094ac94c4:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

commit 936251ee4dbcb939378a724e0e11009094ac94c4
Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
Date:   Mon Jan 9 15:30:17 2012 +0000

    Remove useless free, the memory is allocated in the child process only.

diff --git a/src/init.C b/src/init.C

index 255eb614646bc16c7b6dac16be4d52f805376f66..

index ..dfe3966f675cda5022b0aa8c32ce984b63afb282 100644

--- a/src/init.C
+++ b/src/init.C
@@ -908,6 +908,8 @@ void
 rxvt_term::init_env ()
 {
   char *val;
+  char *env_display;
+  char *env_term;

 #ifdef DISPLAY_IS_IP
   /* Fixup display_name for export over pty to any interested terminal
diff --git a/src/main.C b/src/main.C

index 332b76e4f51a4abfe2341bd3c1cc81e3fac86d15..

index ..67f5a5265830398d55eeebbe945f370421adbc39 100644

--- a/src/main.C
+++ b/src/main.C
@@ -269,9 +269,6 @@ rxvt_term::~rxvt_term ()

   free (selection.text);
   free (selection.clip_text);
-  // TODO: manage env vars in child only(!)
-  free (env_display);
-  free (env_term);
   free (locale);
   free (v_buffer);

diff --git a/src/rxvt.h b/src/rxvt.h

index acd14565e9344fd7329721e291f3b8117d2643a4..

index ..38fc2ce07a4ad4a5d430c7a18c4e9d0e7755cc08 100644

--- a/src/rxvt.h
+++ b/src/rxvt.h
@@ -1217,8 +1217,6 @@ struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen

   char            env_windowid[21];   /* environmental variable WINDOWID */
   char            env_colorfgbg[sizeof ("COLORFGBG=default;default;bg") + 1];
-  char           *env_display;        /* environmental variable DISPLAY  */
-  char           *env_term;           /* environmental variable TERM     */

   char           *locale;
   char            charsets[4];

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 13:01:16 2024