Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern One more resource to release - the filename, if we ...
details: https://anonhg.NetBSD.org/src/rev/c46986e4c248
branches: trunk
changeset: 356050:c46986e4c248
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Tue Aug 29 10:23:12 2017 +0000
description:
One more resource to release - the filename, if we kept it.
diffstat:
sys/kern/kern_veriexec.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r 72bc800c44ee -r c46986e4c248 sys/kern/kern_veriexec.c
--- a/sys/kern/kern_veriexec.c Tue Aug 29 10:19:54 2017 +0000
+++ b/sys/kern/kern_veriexec.c Tue Aug 29 10:23:12 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_veriexec.c,v 1.13 2017/08/29 10:19:54 pgoyette Exp $ */
+/* $NetBSD: kern_veriexec.c,v 1.14 2017/08/29 10:23:12 pgoyette Exp $ */
/*-
* Copyright (c) 2005, 2006 Elad Efrat <elad%NetBSD.org@localhost>
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_veriexec.c,v 1.13 2017/08/29 10:19:54 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_veriexec.c,v 1.14 2017/08/29 10:23:12 pgoyette Exp $");
#include "opt_veriexec.h"
@@ -1156,8 +1156,11 @@
veriexec_bypass = 0;
unlock_out:
- if (error)
+ if (error) {
kmem_free(vfe->fp, vfe->ops->hash_len);
+ if (vfe->filename != NULL)
+ kmem_free(vfe->filename, vfe->filename_len);
+ }
rw_exit(&veriexec_op_lock);
free_out:
Home |
Main Index |
Thread Index |
Old Index