Project

General

Profile

Actions

Bug #3016

closed

sbin/hammer2/cmd_snapshot.c:113]: (error) Memory leak: xname

Added by dcb over 7 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
04/11/2017
Due date:
% Done:

0%

Estimated time:

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 #1

Updated by tuxillo over 2 years ago

  • Description updated (diff)
Actions #2

Updated by tuxillo over 2 years ago

  • Status changed from New to Closed
  • Assignee set to tuxillo
Actions

Also available in: Atom PDF