* [PATCH] remove junk memset before xfree
@ 2011-10-10 16:09 Dmitry Antipov
0 siblings, 0 replies; only message in thread
From: Dmitry Antipov @ 2011-10-10 16:09 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 64 bytes --]
I believe this memset() is a junk which can be removed.
Dmitry
[-- Attachment #2: delete_tty_memset.patch --]
[-- Type: text/plain, Size: 311 bytes --]
=== modified file 'src/term.c'
--- src/term.c 2011-09-15 16:22:58 +0000
+++ src/term.c 2011-10-09 10:44:12 +0000
@@ -3593,8 +3593,6 @@
xfree (tty->Wcm);
xfree (tty->termcap_strings_buffer);
xfree (tty->termcap_term_buffer);
-
- memset (tty, 0, sizeof (struct tty_display_info));
xfree (tty);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-10-10 16:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-10 16:09 [PATCH] remove junk memset before xfree Dmitry Antipov
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.