humanize_number_basic: don't leak buf
MFC after: 3 days Reported by: Coverity CID: 1251407
This commit is contained in:
parent
06cd8428bc
commit
251d8e776e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=311229
@ -247,6 +247,9 @@ ATF_TC_BODY(humanize_number_basic, tc)
|
||||
newline();
|
||||
atf_tc_fail_nonfatal("Failed for table entry %d", i);
|
||||
}
|
||||
#ifdef __FreeBSD__
|
||||
free(buf);
|
||||
#endif
|
||||
}
|
||||
|
||||
ATF_TC(humanize_number_big);
|
||||
|
Loading…
Reference in New Issue
Block a user