diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2016-10-04 13:30:37 -0700 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2016-10-04 13:30:37 -0700 |
commit | 429f8ae71dc7f84b799a6d0a1f96716a7cde8806 (patch) | |
tree | 6d985da9f5b9d57cf9e67516e9b18409eda66b08 /Src/mem.c | |
parent | ccc0b6f8a625357cbae9dfd4a685b9323e09c13f (diff) | |
download | zsh-429f8ae71dc7f84b799a6d0a1f96716a7cde8806.tar.gz zsh-429f8ae71dc7f84b799a6d0a1f96716a7cde8806.tar.xz zsh-429f8ae71dc7f84b799a6d0a1f96716a7cde8806.zip |
39561: missing unqueue_signals() when ZSH_HEAP_DEBUG
Diffstat (limited to 'Src/mem.c')
-rw-r--r-- | Src/mem.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Src/mem.c b/Src/mem.c index db311efbd..a1744c6d9 100644 --- a/Src/mem.c +++ b/Src/mem.c @@ -918,16 +918,21 @@ memory_validate(Heapid heap_id) if (heaps_saved) { for (node = firstnode(heaps_saved); node; incnode(node)) { for (h = (Heap)getdata(node); h; h = h->next) { - if (h->heap_id == heap_id) + if (h->heap_id == heap_id) { + unqueue_signals(); return 0; + } for (hs = heaps->sp; hs; hs = hs->next) { - if (hs->heap_id == heap_id) + if (hs->heap_id == heap_id) { + unqueue_signals(); return 0; + } } } } } + unqueue_signals(); return 1; } /**/ |