c++, Redefining Dynamic Array and Memory Leak
does the following code cause a memory leak? 

    int **flights = new int*[1];
    flights[0] = new int[4];
    flights[...][...] = ...;


    flights = new int*[2];
    flights[0] = new int[4];
    flights[...][...] = ...;

or this: 


    int **flights = new int*[2];
    flights[0] = new int[4];
    flights[...][...] = ...;


    flights = new int*[1];
    flights[0] = new int[4];
    flights[...][...] = ...;

Btw I hate the warning "Your post does not have much context to explain the code sections; please explain your scenario more clearly."
c++, Redefining Dynamic Array and Memory Leak
===

does the following code cause a memory leak? 

    int **flights = new int*[1];
    flights[0] = new int[4];
    flights[...][...] = ...;


    flights = new int*[2];
    flights[0] = new int[4];
    flights[...][...] = ...;

or this: 


    int **flights = new int*[2];
    flights[0] = new int[4];
    flights[...][...] = ...;


    flights = new int*[1];
    flights[0] = new int[4];
    flights[...][...] = ...;

Btw I hate the warning "Your post does not have much context to explain the code sections; please explain your scenario more clearly."