When you open source something, you have to make sure it has a clear license which includes legal disclaimers of warranty and liability. For instance take a look at the disclaimers in the GPL and BSD licenses.
As far as maintenance goes, you have no contractual obligation to anyone to fix anything for them, if you aren't being paid.