git: kernel - Clean up minor kernel memory leak

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Dec 16 23:06:46 PST 2019


commit ed10a2bf74201bc5d35bbd0af820661943573320
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Dec 16 23:05:24 2019 -0800

    kernel - Clean up minor kernel memory leak
    
    * The ifconfig sysctl code was not filling every last byte of the
      returned buffer, creating a small memory leak.  Zero the buffer
      prior to filling it in to guarantee that no garbage is left in
      these spots.

Summary of changes:
 sys/net/rtsock.c | 2 ++
 1 file changed, 2 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ed10a2bf74201bc5d35bbd0af820661943573320


-- 
DragonFly BSD source repository



More information about the Commits mailing list