https://bugs.kde.org/show_bug.cgi?id=428716

            Bug ID: 428716
           Summary: VEX/useful/smchash.c:39:16: error: Memory leak: gb
                    [memleak]
           Product: valgrind
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: dcb...@hotmail.com
  Target Milestone: ---

Source code is

  GuestBytes* gb = malloc(sizeof(GuestBytes));
  assert(gb);

  if (feof(f)) return NULL;

Maybe better code

  if (feof(f)) return NULL;

  GuestBytes* gb = malloc(sizeof(GuestBytes));
  assert(gb);

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to