News for hackers. Stuff that matters.
Re:Finding bugs in Tarsnap by programmernews3 on Thursday July 02, 2015 @06:00PM (#9822002)
I think I understand. Function, which could be used independently should free all used resources.

If a function is very project-specific and has no purpose to being used independently it may be worth considering declaring it static, right?

Re:Finding bugs in Tarsnap by cperciva on Friday July 03, 2015 @02:03AM (#9823790)
"static" is a different concept -- that marks a function as not being used from outside of that compilation unit (aka .c file). This particular function was used from outside of that file, but was unlikely to be reused in a different project.