libvorbis: fix free() called on a wrong pointer
This commit is contained in:
parent
ce82f6750c
commit
c789c05480
1 changed files with 2 additions and 2 deletions
|
@ -495,7 +495,7 @@ void mdct_forward(mdct_lookup *init, DATA_TYPE *in, DATA_TYPE *out){
|
|||
int n4=n>>2;
|
||||
int n8=n>>3;
|
||||
DATA_TYPE *w=malloc(n*sizeof(*w)); /* forward needs working space */
|
||||
DATA_TYPE *w2=w+n2;
|
||||
DATA_TYPE *w2=w+n2, *wbuf=w;
|
||||
|
||||
/* rotate */
|
||||
|
||||
|
@ -559,5 +559,5 @@ void mdct_forward(mdct_lookup *init, DATA_TYPE *in, DATA_TYPE *out){
|
|||
w+=2;
|
||||
T+=2;
|
||||
}
|
||||
free(w);
|
||||
free(wbuf);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue