When I run debugging it points to the `line: 105` (and writes "segmentation fault" in the left corner). I don't know what does red line in "Call stack" window mean... 

Please, tell waht it is and where can I read more about it.

Here is the function's code:

```
/* Separates stereo file's samples to L and R channels. */
struct LandR sepChannels_8( unsigned char *smp, unsigned long N, unsigned char *L, unsigned char *R, struct LandR LRChannels )
{
    int i;

    if ( N % 2 == 0 )   // Each channel's (L,R) number of samles is 1/2 of all samples.
    {
        L = malloc(N / 2);
        R = malloc(N / 2);
    }
    else
        if ( N % 2 == 1 )
        {
            L = malloc(N + 1 / 2);
            R = malloc(N + 1 / 2);
        }

    int m = 0;
    for ( i = 0; i < N; i++ )    // separating
    {
        L[m] = smp[2 * i + 0];   // THIS IS THE "LINE: 105"
        R[m] = smp[2 * i + 1];
        m++;
    }
    return LRChannels; 
}

```

And here is sreenshot of the windows (easier to show it instead of trying to describe)

![enter image description here](https://i.stack.imgur.com/tkUca.jpg)