-- 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:
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
--- 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
--- 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
--- 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