main: and remembered to delete the variable from heap ...

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2025-02-10 16:54:15 -05:00
parent c91b7ee785
commit 78660fb70e
Signed by: vbatts
GPG key ID: E30EFAA812C6E5ED

View file

@ -34,11 +34,12 @@ Account* do_account() {
void scoped_account() {
log_out("HERE");
Account* account = do_account();
auto account = do_account();
log_out("HERE");
account->withdraw(100);
log_out("Current Balance: " << account->getBalance());
log_err("dang");
delete account;
}