Project

General

Profile

Actions

Bug #14136

closed

acctadm *SOMETIMES* triggers smatch error

Added by Dan McDonald about 2 months ago. Updated 17 days ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

It's been more frequent of late in our Jenkins builds. We're seeing:

/root/data/jenkins/workspace/smartos-master-debug/projects/illumos/usr/src/tools/proto/root_i386-nd/opt/onbld/bin/i386/smatch: main.c:377 main() warn: passing freed memory 'buf'
/root/data/jenkins/workspace/smartos-master-debug/projects/illumos/usr/src/tools/proto/root_i386-nd/opt/onbld/bin/i386/smatch: main.c:388 main() warn: passing freed memory 'buf'

Even though the ONLY way "buf" is freed before hitting those two lines are via free() calls before die(), which exits the program. Is it a bug in the program? Or in smatch?

Actions

Also available in: Atom PDF