git: sbin/hammer: Fix memory leak

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Tue Aug 16 07:39:44 PDT 2016


commit 16712f18f748c9c82535b14934e368ad9fb33c7a
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Tue Aug 16 20:45:44 2016 +0900

    sbin/hammer: Fix memory leak
    
    strsep moves * by taking **, so the caller need to keep a pointer to strdup'd address.

Summary of changes:
 sbin/hammer/cmd_remote.c |  6 +++---
 sbin/hammer/hammer.c     | 13 +++++++------
 2 files changed, 10 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/16712f18f748c9c82535b14934e368ad9fb33c7a


-- 
DragonFly BSD source repository


More information about the Commits mailing list