dir: Don't leak resources on error in c_rmdirs().
dir: Don't leak resources on error in c_rmdirs().

Found by Coverity.

meeh420/csync,meeh420/csync,gco/csync,gco/csync,gco/csync,gco/csync,meeh420/csync