mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 08:43:40 -07:00
Trace objects in locally malloc'd memory
* src/buffer.c (Foverlays_at): Use igc_xzalloc_ambig.
This commit is contained in:
parent
a2976709fc
commit
042a2a5e0b
1 changed files with 8 additions and 0 deletions
|
|
@ -3900,7 +3900,11 @@ interest. */)
|
|||
|
||||
len = 10;
|
||||
/* We can't use alloca here because overlays_at can call xrealloc. */
|
||||
#ifdef HAVE_MPS
|
||||
overlay_vec = igc_xzalloc_ambig (len * sizeof *overlay_vec);
|
||||
#else
|
||||
overlay_vec = xmalloc (len * sizeof *overlay_vec);
|
||||
#endif
|
||||
|
||||
/* Put all the overlays we want in a vector in overlay_vec.
|
||||
Store the length in len. */
|
||||
|
|
@ -3919,7 +3923,11 @@ interest. */)
|
|||
if (!NILP (sorted))
|
||||
result = Fnreverse (result);
|
||||
|
||||
#ifdef HAVE_MPS
|
||||
igc_xfree (overlay_vec);
|
||||
#else
|
||||
xfree (overlay_vec);
|
||||
#endif
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue