Commit 07647e20 by Francois Gygi

Delete ft only if allocated in WavefunctionHandler

parent a4971252
......@@ -629,7 +629,8 @@ void WavefunctionHandler::endElement(const XMLCh* const uri,
cout << MPIdata::rank() << ": end copying ispin=" << ispin
<< " ikp=" << ikp << endl;
#endif
delete ft;
if ( ( isp_loc >= 0 ) && ( ikp_loc ) >= 0 )
delete ft;
current_gfdata_pos_ += nst;
} // ikp
} // ispin
......
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