fix Pointer recycle (#346)

pull/349/head
LoneRanger 2 years ago committed by GitHub
parent ea901af217
commit 7f4243ab77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -120,6 +120,7 @@ public:
cout << "堆的树状表示:" << endl;
TreeNode *root = vecToTree(maxHeap);
PrintUtil::printTree(root);
freeMemoryTree(root);
}
};

@ -331,5 +331,6 @@ class PrintUtil {
cout << "堆的树状表示:" << endl;
TreeNode *root = vecToTree(vec);
printTree(root);
freeMemoryTree(root);
}
};

Loading…
Cancel
Save