Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 03
diff options
context:
space:
mode:
1 files changed, 1 insertions, 0 deletions
-rw-r--r--Sem. 03/students_dynamicName_to_binary.cpp1
diff --git a/Sem. 03/students_dynamicName_to_binary.cpp b/Sem. 03/students_dynamicName_to_binary.cpp
index d35907f..1c7884f 100644
--- a/Sem. 03/students_dynamicName_to_binary.cpp
+++ b/Sem. 03/students_dynamicName_to_binary.cpp
@@ -56,6 +56,7 @@ int main()
if (!file.open())
{
cout << "Error while writing to binary file!" << endl;
+ delete[] s1.name, s2.name;
return -1;
}