From 65e811570be17411e6c1996e2e3a8d5c1707a4ae Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 28 Aug 2026 08:02:16 +0000 Subject: [PATCH] Do no free input context if it is NULL when popup create fails. --- popup.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/popup.c b/popup.c index 5e037922f..8dd058d57 100644 --- a/popup.c +++ b/popup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: popup.c,v 1.76 2026/07/14 19:07:03 nicm Exp $ */ +/* $OpenBSD: popup.c,v 1.77 2026/08/28 08:02:16 nicm Exp $ */ /* * Copyright (c) 2020 Nicholas Marriott @@ -80,7 +80,8 @@ popup_free(struct popup_data *pd) if (pd->job != NULL) job_free(pd->job); - input_free(pd->ictx); + if (pd->ictx != NULL) + input_free(pd->ictx); free(pd->r.ranges); screen_free(&pd->s);