
Whenever i try to perform any filesystem library operation in Linux i get following message at runtime. I written following code int SystemCall::Remove(std::string strAbsFilename) { fs::path del_path ( fs::initial_path() ); del_path = fs::system_complete( fs::path( strAbsFilename, fs::native ) ); if(fs::exists( del_path )) { int i = fs::remove(del_path); cout << i << "\n"; } else { cout << strAbsFilename.c_str() << " not found."; return 0; } cout << "\nSuccessfully deleted."; return 1; } This code deleted the file passed to it as an argument. But give runtime message "free(): invalid pointer 0x91d5638! ". 1) Is it a memory leak ? 2) Can this lead to a bigger problem. Because my code works perfectly fine except this message.? -- Thanks & Regards: Prateek Khanna Software Developer Baysquare Technologies
participants (1)
-
prateek khanna