Actions
Bug #3016
closedsbin/hammer2/cmd_snapshot.c:113]: (error) Memory leak: xname
Description
$ 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 ?
Actions