bug from wkj
diff --git a/src/libmux/queue.c b/src/libmux/queue.c
index 072f186..1cadbe6 100644
--- a/src/libmux/queue.c
+++ b/src/libmux/queue.c
@@ -45,6 +45,7 @@
 	if(q->hungup){
 		werrstr("hungup queue");
 		qunlock(&q->lk);
+		free(e);
 		return -1;
 	}
 	e->p = p;