fixed memory leak

This commit is contained in:
Francesco Cozzuto
2021-12-01 14:08:11 +01:00
parent 3238c2fb8e
commit a7cdb0943d
3 changed files with 9 additions and 3 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ fun append_esclamation_mark(A, n)
i = 0;
while i < n:
{
{
A = strcat(A, '!');
i = i + 1;
}
@@ -19,4 +19,4 @@ fun append_esclamation_mark(A, n)
return A;
}
print(append_esclamation_mark(D, 7), '\n');
print(append_esclamation_mark(D, 3), '\n');