[DragonFlyBSD - Bug #3016] (New) sbin/hammer2/cmd_snapshot.c:113]: (error) Memory leak: xname

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Tue Apr 11 11:20:03 PDT 2017


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


More information about the Bugs mailing list