Hi All,

I have a C function 'myFunction' (see below) which returns a char *. Suppse I would like to wrap this function with swig so that I can use it with python.
Now I wonder how this memory will be freed ? Will I get a memory leak ? Because when I would use this in C, I would free the char *c pointer
in the function that calls myFunction().

Thank you for answering,

pluto mars.

char* myFunction()
{
    char *c = "My String";
    return c;

}