about summary refs log tree commit diff
path: root/Src/mem.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2016-10-03 13:43:20 +0100
committerPeter Stephenson <pws@zsh.org>2016-10-03 13:43:20 +0100
commit4ab3fcc90d928d200f9e70c81189079c3316b42d (patch)
tree0e0ee027291957ac1f14126c7a4674cfcd19f435 /Src/mem.c
parent36a11804b467d7553f8fdaed9320869d8d984f77 (diff)
downloadzsh-4ab3fcc90d928d200f9e70c81189079c3316b42d.tar.gz
zsh-4ab3fcc90d928d200f9e70c81189079c3316b42d.tar.xz
zsh-4ab3fcc90d928d200f9e70c81189079c3316b42d.zip
39545: Add some missing unqueue_signals().
All of these are added simply to fit existing logic in other branches.
Diffstat (limited to 'Src/mem.c')
-rw-r--r--Src/mem.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/Src/mem.c b/Src/mem.c
index 021dad573..db311efbd 100644
--- a/Src/mem.c
+++ b/Src/mem.c
@@ -903,11 +903,15 @@ memory_validate(Heapid heap_id)
 
     queue_signals();
     for (h = heaps; 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;
+	    }
 	}
     }