Memory leak happens when you create a memory in heap but you forget to deallocate it
For example
You have a pointer x pointing to variable a
now you make the pointer x point to variable b
variable a is still in memory and can never be accessed
this leads to memory leak
Therefore Option A with a slight variation in it ,.......
It happenes when u forget to deallocate..... not allocate
change that in your option :)