From a0e4b92bbf4457892337318f81fdd76a15ab96d2 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Tue, 11 Apr 2017 09:18:52 -0400 Subject: [PATCH] 2017-04-11 Fred Gleason * Fixed a bug in 'web/rdxport/import.cpp' that caused temporary files to be left behind after processing an Import web call. --- ChangeLog | 3 +++ web/rdxport/import.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index b910d0b5..e349beca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15720,3 +15720,6 @@ * Added an rdauth(1) utility in 'utils/rdauth/'. * Fixed a regression in 'lib/rdcart.cpp' that caused the 'Import' web API call to fail with an 'unsupported format' error. +2017-04-11 Fred Gleason + * Fixed a bug in 'web/rdxport/import.cpp' that caused temporary files + to be left behind after processing an Import web call. diff --git a/web/rdxport/import.cpp b/web/rdxport/import.cpp index c7768c1a..49ff64a7 100644 --- a/web/rdxport/import.cpp +++ b/web/rdxport/import.cpp @@ -233,6 +233,8 @@ void Xport::Import() printf(" %d\r\n",cartnum); printf(" %d\r\n",cutnum); printf("\r\n"); + unlink(filename); + rmdir(xport_post->tempDir()); exit(0); } XmlExit(RDAudioConvert::errorText(conv_err),resp_code,conv_err);