144815 Commits

Author SHA1 Message Date
christos
6b8123e7e5 Coverity CID 1909: Prevent memory leak. 2006-03-19 21:21:18 +00:00
christos
e5d241d0e4 Coverity CID 2480: Move variable initialization higher up to prevent
uninitialized access during error cleanup.
2006-03-19 21:15:21 +00:00
christos
81cd8f57a4 Coverity CID 2481: Move initialization of variable higher up to prevent
uninitialized access in error path.
2006-03-19 21:11:28 +00:00
christos
082737ff51 Coverity CID 2595: Don't call cc_destroy after cc_close because cc_close
free's the second argument.
2006-03-19 21:07:55 +00:00
christos
4ea32734dc Make this compile again, before I nuke it from orbit. 2006-03-19 21:01:17 +00:00
christos
cd35252882 Use float constants! 2006-03-19 20:54:15 +00:00
christos
a42e5c8db9 Coverity CID 562: Flip the order of the if statement to prevent unreachable
code.
2006-03-19 20:46:25 +00:00
christos
fef1370818 Coverity CID 572: Comment out dead code. 2006-03-19 20:42:44 +00:00
christos
15da190f2c Coverity CID 573: Comment out unreachable code. 2006-03-19 20:41:24 +00:00
christos
4696019f20 Coverity CID 574: Unreachable code due to incorrect constants. Correct
constants according to the comments in the code, and add more comments.
2006-03-19 20:39:48 +00:00
christos
3511ea5c9b Coverity CID 575: comment out dead code. 2006-03-19 20:15:07 +00:00
christos
2ca947f5e7 Coverity CID 107[123]: Leave the assertions in the code, not only when DEBUG
is set.
2006-03-19 20:08:09 +00:00
christos
51566e9c85 Coverity CID 1553: Fix memory leak. While here, fix malloc calls:
- don't cast
- use sizeof(var) instead of sizeof(type)
2006-03-19 20:02:27 +00:00
christos
f017961ddf Coverity CID 828: Add an assertion to validate that activeq is initialized;
while here simplify code.
2006-03-19 19:57:22 +00:00
christos
14339635d2 restore struct des_ks_struct used by krb4. Nothing uses it here, so GC it
when KRB4 is ejected.
2006-03-19 19:39:26 +00:00
christos
e1b2ea7ce9 Change des_key_schedule to be an array of DES_LONG instead of abusing
struct and union semantics.
2006-03-19 19:35:00 +00:00
tsutsui
8fe92db798 Add trailing semicolons to some macroes which have been changed
using do{}while(/*CONSTCOND*/0) statements.
2006-03-19 19:17:01 +00:00
christos
59586f9983 Coverity CID 1606: Plug memory leak. 2006-03-19 19:12:23 +00:00
christos
a8846ec5ac Coverity CID 2734, 2731: Use after free; resource leak 2006-03-19 19:06:39 +00:00
matt
0486735479 More MALLOC -> malloc changes. 2006-03-19 17:50:42 +00:00
christos
6dccf87632 Avoid overflowing static array which c == HAT. 2006-03-19 17:41:55 +00:00
elad
2ff3564ba8 fix memory leak, coverity cid 2032. 2006-03-19 16:48:36 +00:00
elad
0a2d3f7a19 fix memory leaks, coverity cid 2016. 2006-03-19 16:47:09 +00:00
elad
f6bc7e7627 fix memory leaks, coverity cids 2028, 2029. 2006-03-19 16:40:32 +00:00
elad
2741a951b4 fix fd leak, coverity cid 2015. 2006-03-19 16:33:26 +00:00
elad
be71d6bbfd fix null deref, coverity cid 1341. 2006-03-19 16:29:43 +00:00
cube
3eaff5cb14 Proper resource handling in mkmakefile().
Coverity CIDs: 186, 187, 188 and 189.
2006-03-19 16:27:13 +00:00
elad
8a41610291 fix null deref, coverity cid 1339. 2006-03-19 16:23:19 +00:00
elad
28788b89c7 fix null deref, coverity cid 1340. 2006-03-19 16:20:47 +00:00
bouyer
c2dd0a8a5e More xbd->xbd_hypervisor changes; non-Xen3 kernels build again. 2006-03-19 15:11:50 +00:00
bouyer
4fd105ebad libkadm5srv and libkadm5clnt uses libhdb, add a .WAIT. 2006-03-19 15:10:19 +00:00
he
3ac2299da5 Now that we use exit(2), we need to include <stdlib.h> for its definition. 2006-03-19 12:09:39 +00:00
martin
6f9eece7e6 Fix bus_space_read_stream*_2 accessors (pasto, proably) - this makes wi0
work on my meshcube.
2006-03-19 11:55:02 +00:00
wiz
cfed86b6c3 Mark up NULL and -. 2006-03-19 10:46:21 +00:00
wiz
59ba5fe8d1 New sentence, new line. 2006-03-19 10:45:03 +00:00
yamt
bd149b4812 m_copyback0:
- unify two copies of code to extend a chain.
- when extending a chain,
	- use trailing space of the last mbuf if any.
	- use mbuf cluster if appropriate.
2006-03-19 10:07:19 +00:00
christos
d5b9c02e8c add a semi colon. 2006-03-19 08:00:19 +00:00
kardel
dbefff2ee4 error handling: check success of open(2) - bail out early (Coverity CID 1282 NetBSD Scan 5) 2006-03-19 07:20:30 +00:00
phil
01ec6393c4 Plug resource leak. (CID 1600) 2006-03-19 07:04:06 +00:00
kardel
24781071d1 null deref: complete linked list handling beginng condition (Coverity CID 986) 2006-03-19 07:02:47 +00:00
jnemeth
0c47a67596 Fix coverity run 5, issue 2018 -- memory leak.
Approved by christos.
2006-03-19 06:52:26 +00:00
tsutsui
9834d09359 - TAB/space cleanup
- use do{}while(/*CONSTCOND*/0) for macro with multiple statements
2006-03-19 06:50:13 +00:00
tsutsui
1eda58c44f TAB/space cleanup. 2006-03-19 06:47:35 +00:00
rtr
d6ba186243 avoid deref of NULL
coverity 2436 / run 6
2006-03-19 06:22:45 +00:00
tsutsui
2e1bb9e9d2 Replace MALLOC(9) with malloc(9) in non critical path. 2006-03-19 06:13:43 +00:00
rtr
739b734996 the preceeding loop does not terminate except in a condition where
kp != NULL therefore testing if kp is == NULL after it is pointless
coverity 2446 / run 6
2006-03-19 06:10:22 +00:00
christos
c08f926ecb include <stdlib.h> to get a prototype for exit 2006-03-19 06:02:50 +00:00
simonb
92610d767b Use tabs instead of spaces with previous change. 2006-03-19 05:46:50 +00:00
david
f16962165c Fix memory leaks when some components of a raid where missing during
autoconfig.

From Coverity CIDs 2328, 2324, 2323, 1125
2006-03-19 05:31:38 +00:00
rtr
880b6df674 avoid double fclose()
coverity 2577 / run 6
2006-03-19 05:01:48 +00:00