[DragonFlyBSD - Bug #3016] (Closed) sbin/hammer2/cmd_snapshot.c:113]: (error) Memory leak: xname
bugtracker-admin at leaf.dragonflybsd.org
bugtracker-admin at leaf.dragonflybsd.org
Fri Jun 3 16:36:47 PDT 2022
Issue #3016 has been updated by tuxillo.
Status changed from New to Closed
Assignee set to tuxillo
It was removed in commit:f8a108fb1b0a6a6f4cd533e9fa0b110ef124160d
----------------------------------------
Bug #3016: sbin/hammer2/cmd_snapshot.c:113]: (error) Memory leak: xname
http://bugs.dragonflybsd.org/issues/3016#change-14335
* Author: dcb
* Status: Closed
* Priority: Normal
* Assignee: tuxillo
* Target version: 6.4
* Start date: 2017-04-11
----------------------------------------
<pre>
$ 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,
$
</pre>
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