Skip to contentSkip to conversation

9ead082168053f89: Restore NULL checks before calling kfree().

DISCUSSION Rusty Russell 2 participants 2 messages Sep 13, 2005

lore
Share & tools
lore
#0 lore raw

Hmm, kfree() is defined to work (like free) as a noop on NULL.

Please, when checking in changes, tell us *why*. Consistency with rest of code? Stylistic concerns? Found a bug?

Thanks!
Rusty.

Signature · 1 line
A bad analogy is like a leaky screwdriver -- Richard Braakman
#1 lore raw
Quoted 4 lines · Rusty Russell

Hmm, kfree() is defined to work (like free) as a noop on NULL.

Please, when checking in changes, tell us *why*. Consistency with rest of code? Stylistic concerns? Found a bug?

Consistency with rest of code and stylistic concerns.

christian