Unlink temp file on error
This commit is contained in:
parent
6e32445c87
commit
a2afbd3ea3
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue