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.
This commit is contained in:
parent
01ae0fbf30
commit
f59c276045
1 changed files with 1 additions and 1 deletions
|
@ -6862,7 +6862,7 @@ detect_suspicious_free (void* ptr)
|
|||
suspicious_free_history_index = 0;
|
||||
}
|
||||
|
||||
memset (rec, 0, sizeof (rec));
|
||||
memset (rec, 0, sizeof (*rec));
|
||||
rec->suspicious_object = ptr;
|
||||
#ifdef HAVE_EXECINFO_H
|
||||
backtrace (&rec->backtrace[0], EARRAYSIZE (rec->backtrace));
|
||||
|
|
Loading…
Add table
Reference in a new issue