From 696350d0c510e4dd0498cd1168810fa6e2103052 Mon Sep 17 00:00:00 2001 From: "Mark A. Grondona" Date: Tue, 24 Dec 2024 19:12:32 +0000 Subject: [PATCH] fixup! shell: output: refactor output plugin --- src/shell/output/filehash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell/output/filehash.c b/src/shell/output/filehash.c index 1ae172f5b729..eb8d2eb0bda9 100644 --- a/src/shell/output/filehash.c +++ b/src/shell/output/filehash.c @@ -93,7 +93,7 @@ static struct file_entry *file_entry_open (const char *path, void file_entry_close (struct file_entry *fp) { - if (--fp->refcount == 0) + if (fp && --fp->refcount == 0) zhashx_delete (fp->fh->files, fp->path); }