diff options
| author | Gerd Moellmann | 2000-10-23 15:03:55 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-10-23 15:03:55 +0000 |
| commit | a83fee2c5629b8c4c73f18043df72d2a4edd5ccd (patch) | |
| tree | 9e879f8b88908e4a70c4eca7a6cc5ecfed26469d /src | |
| parent | 182334bd081466ba449a71cbc831affd810ac4cd (diff) | |
| download | emacs-a83fee2c5629b8c4c73f18043df72d2a4edd5ccd.tar.gz emacs-a83fee2c5629b8c4c73f18043df72d2a4edd5ccd.zip | |
(emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing
null.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 11 | ||||
| -rw-r--r-- | src/alloc.c | 31 |
2 files changed, 25 insertions, 17 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 3cb5ce46d45..8286648aca1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2000-10-23 Gerd Moellmann <gerd@gnu.org> | ||
| 2 | |||
| 3 | * xterm.c (x_connection_closed): Reset handling_signal. | ||
| 4 | |||
| 5 | * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing | ||
| 6 | null. | ||
| 7 | |||
| 1 | 2000-10-23 Miles Bader <miles@gnu.org> | 8 | 2000-10-23 Miles Bader <miles@gnu.org> |
| 2 | 9 | ||
| 3 | * window.c (window_scroll_pixel_based, window_scroll_line_based): | 10 | * window.c (window_scroll_pixel_based, window_scroll_line_based): |
| @@ -11,7 +18,7 @@ | |||
| 11 | that when a font can't be exactly centered, it errs up rather than | 18 | that when a font can't be exactly centered, it errs up rather than |
| 12 | down. | 19 | down. |
| 13 | 20 | ||
| 14 | 2000-10-22 15:07:47 ShengHuo ZHU <zsh@cs.rochester.edu> | 21 | 2000-10-22 ShengHuo ZHU <zsh@cs.rochester.edu> |
| 15 | 22 | ||
| 16 | * fns.c (Fbase64_decode_string): The decoded result should be | 23 | * fns.c (Fbase64_decode_string): The decoded result should be |
| 17 | unibyte. | 24 | unibyte. |
| @@ -21,7 +28,7 @@ | |||
| 21 | * dispextern.h [macintosh]: Include macgui.h instead of macterm.h. | 28 | * dispextern.h [macintosh]: Include macgui.h instead of macterm.h. |
| 22 | 29 | ||
| 23 | * dispnew.c [macintosh]: Include macterm.h. | 30 | * dispnew.c [macintosh]: Include macterm.h. |
| 24 | (init_display) [macintosh]: initialization for window system. | 31 | (init_display) [macintosh]: Initialization for window system. |
| 25 | 32 | ||
| 26 | * emacs.c (main) [macintosh]: Call syms_of_textprop, | 33 | * emacs.c (main) [macintosh]: Call syms_of_textprop, |
| 27 | syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm, | 34 | syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm, |
diff --git a/src/alloc.c b/src/alloc.c index 54c4b447fde..625dc14720f 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -655,22 +655,23 @@ emacs_blocked_free (ptr) | |||
| 655 | BLOCK_INPUT; | 655 | BLOCK_INPUT; |
| 656 | 656 | ||
| 657 | #ifdef GC_MALLOC_CHECK | 657 | #ifdef GC_MALLOC_CHECK |
| 658 | { | 658 | if (ptr) |
| 659 | struct mem_node *m; | 659 | { |
| 660 | struct mem_node *m; | ||
| 660 | 661 | ||
| 661 | m = mem_find (ptr); | 662 | m = mem_find (ptr); |
| 662 | if (m == MEM_NIL || m->start != ptr) | 663 | if (m == MEM_NIL || m->start != ptr) |
| 663 | { | 664 | { |
| 664 | fprintf (stderr, | 665 | fprintf (stderr, |
| 665 | "Freeing `%p' which wasn't allocated with malloc\n", ptr); | 666 | "Freeing `%p' which wasn't allocated with malloc\n", ptr); |
| 666 | abort (); | 667 | abort (); |
| 667 | } | 668 | } |
| 668 | else | 669 | else |
| 669 | { | 670 | { |
| 670 | /* fprintf (stderr, "free %p...%p (%p)\n", m->start, m->end, ptr); */ | 671 | /* fprintf (stderr, "free %p...%p (%p)\n", m->start, m->end, ptr); */ |
| 671 | mem_delete (m); | 672 | mem_delete (m); |
| 672 | } | 673 | } |
| 673 | } | 674 | } |
| 674 | #endif /* GC_MALLOC_CHECK */ | 675 | #endif /* GC_MALLOC_CHECK */ |
| 675 | 676 | ||
| 676 | __free_hook = old_free_hook; | 677 | __free_hook = old_free_hook; |