Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-9]: src/sbin/fsck Pull up following revision(s) (requested by mar...



details:   https://anonhg.NetBSD.org/src/rev/6de92ebda522
branches:  netbsd-9
changeset: 458214:6de92ebda522
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Sun Aug 18 13:31:21 2019 +0000

description:
Pull up following revision(s) (requested by martin in ticket #88):
        sbin/fsck/partutil.c: revision 1.16
Properly release the disk properties dictionary we received via
ioctl.
Detected by leak sanitizer when building with MKSANITIZER=yes.

diffstat:

 sbin/fsck/partutil.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 8c3687092e90 -r 6de92ebda522 sbin/fsck/partutil.c
--- a/sbin/fsck/partutil.c      Sun Aug 18 13:29:15 2019 +0000
+++ b/sbin/fsck/partutil.c      Sun Aug 18 13:31:21 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: partutil.c,v 1.15 2015/06/03 17:53:23 martin Exp $     */
+/*     $NetBSD: partutil.c,v 1.15.18.1 2019/08/18 13:31:21 msaitoh Exp $       */
 
 /*-
  * Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: partutil.c,v 1.15 2015/06/03 17:53:23 martin Exp $");
+__RCSID("$NetBSD: partutil.c,v 1.15.18.1 2019/08/18 13:31:21 msaitoh Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -131,6 +131,8 @@
                geom_dict = prop_dictionary_get(disk_dict, "geometry");
                dict2geom(geo, geom_dict);
        }
+       if (disk_dict != NULL)
+               prop_object_release(disk_dict);
 
        if (dkw == NULL)
                return 0;



Home | Main Index | Thread Index | Old Index