mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
fix: Use delete[] operator
This commit is contained in:
parent
957a05bd0c
commit
cea644bdc3
@ -51,7 +51,7 @@ int main() {
|
|||||||
}
|
}
|
||||||
} while (ch != 0);
|
} while (ch != 0);
|
||||||
|
|
||||||
delete stack;
|
delete[] stack;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user