diff options
| author | Daniel Colascione | 2014-04-02 17:37:51 -0700 |
|---|---|---|
| committer | Daniel Colascione | 2014-04-02 17:37:51 -0700 |
| commit | f59c276045dd5137e62d8a8286ed06245e4c39ce (patch) | |
| tree | c80afd45f51fd7f90c6e69eb557684c3549928cf /src | |
| parent | 01ae0fbf30b74e2490144fceabbf5bc5d96f1ba7 (diff) | |
| download | emacs-f59c276045dd5137e62d8a8286ed06245e4c39ce.tar.gz emacs-f59c276045dd5137e62d8a8286ed06245e4c39ce.zip | |
Fix typo
* alloc.c: Include execinfo.h if available.
(SUSPICIOUS_OBJECT_CHECKING): New macro; define unconditionally.
(suspicious_free_record): New structure.
(suspicious_objects,suspicious_object_index)
(suspicious_free_history, suspicious_free_history_index): New
variables.
(find_suspicious_object_in_range,detect_suspicious_free,Fsuspicious_object):
New functions.
(cleanup_vector): Call find_suspicious_object_in_range.
Diffstat (limited to 'src')
| -rw-r--r-- | src/alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c index 8ec0421e7a4..46b4f5021df 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -6862,7 +6862,7 @@ detect_suspicious_free (void* ptr) | |||
| 6862 | suspicious_free_history_index = 0; | 6862 | suspicious_free_history_index = 0; |
| 6863 | } | 6863 | } |
| 6864 | 6864 | ||
| 6865 | memset (rec, 0, sizeof (rec)); | 6865 | memset (rec, 0, sizeof (*rec)); |
| 6866 | rec->suspicious_object = ptr; | 6866 | rec->suspicious_object = ptr; |
| 6867 | #ifdef HAVE_EXECINFO_H | 6867 | #ifdef HAVE_EXECINFO_H |
| 6868 | backtrace (&rec->backtrace[0], EARRAYSIZE (rec->backtrace)); | 6868 | backtrace (&rec->backtrace[0], EARRAYSIZE (rec->backtrace)); |