aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/imgact_binmisc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/imgact_binmisc.c')
-rw-r--r--sys/kern/imgact_binmisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/imgact_binmisc.c b/sys/kern/imgact_binmisc.c
index fd58e788169a..6d5cca227560 100644
--- a/sys/kern/imgact_binmisc.c
+++ b/sys/kern/imgact_binmisc.c
@@ -182,7 +182,7 @@ imgact_binmisc_destroy_entry(imgact_binmisc_entry_t *ibe)
{
if (!ibe)
return;
- if (ibe->ibe_mask)
+ if (ibe->ibe_magic)
free(ibe->ibe_magic, M_BINMISC);
if (ibe->ibe_mask)
free(ibe->ibe_mask, M_BINMISC);