Issue #3016 has been reported by dcb.
----------------------------------------
Bug #3016: sbin/hammer2/cmd_snapshot.c:113]: (error) Memory leak: xname
http://bugs.dragonflybsd.org/issues/3016
* Author: dcb
* Status: New
* Priority: Normal
* Assignee:
* Category:
* Target version:
----------------------------------------
$ fgrep xname dragonfly/sbin/hammer2/cmd_snapshot.c
char *xname;
xname = strdup("");
asprintf(&xname, ".%s", strrchr(path, '/') + 1);
asprintf(&xname, ".%s", path);
xname = strdup("");
xname,
$
I don't see anywhere that xname is freed. Maybe this would be a good idea ?
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://bugs.dragonflybsd.org/my/account