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 <fredg@paravelsystems.com> + * 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(" <CartNumber>%d</CartNumber>\r\n",cartnum); printf(" <CutNumber>%d</CutNumber>\r\n",cutnum); printf("</RDWebResult>\r\n"); + unlink(filename); + rmdir(xport_post->tempDir()); exit(0); } XmlExit(RDAudioConvert::errorText(conv_err),resp_code,conv_err);