Commit 91748bcc authored by Mikael Salson's avatar Mikael Salson

similarity: The temporary file was not deleted

A temporary file is created in CGI mode to store the FASTA on which we compute
the similarity matrix
parent a644e8e2
......@@ -3,6 +3,7 @@
#include <stdio.h>
#include <string.h>
#include <cstdlib>
#include <unistd.h>
#include "../core/dynprog.h"
#include "../core/fasta.h"
#include "../core/lazy_msa.h"
......@@ -126,6 +127,8 @@ int main(int argc, char* argv[])
json j;
j << JsonOutputSimilarityMatrix(matrix);
cout << j.dump();
if (cgi_mode)
unlink(fdata);
}else{
cout << RawOutputSimilarityMatrix(matrix, 90);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment