If an exception occurs in F1, pointer sp1 wont be deleted and cause a memory leak.To prevent it, use smart pointer.
If an exception occurs in F1, pointer sp1 wont be deleted and cause a memory leak.
ReplyDeleteTo prevent it, use smart pointer.