Unlink temp file on error

This commit is contained in:
Mattias Wadman 2009-04-10 15:06:19 +00:00
parent 6e32445c87
commit a2afbd3ea3

View file

@ -149,6 +149,8 @@ hts_settings_save(htsmsg_t *record, const char *pathfmt, ...)
if(ok)
rename(fullpath, fullpath2);
else
unlink(fullpath);
htsbuf_queue_flush(&hq);
}