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 ?
Updated by tuxillo over 2 years ago
- Status changed from New to Closed
- Assignee set to tuxillo
It was removed in f8a108fb1b0a6a6f4cd533e9fa0b110ef124160d
Actions