Fix memory leak.
This commit is contained in:
parent
84580df643
commit
5b0d741271
@ -227,10 +227,6 @@ HookReturnStruct *GetReturnStruct(DHooksCallback *dg)
|
|||||||
res->newResult = malloc(sizeof(float));
|
res->newResult = malloc(sizeof(float));
|
||||||
*(float *)res->orgResult = 0.0;
|
*(float *)res->orgResult = 0.0;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
res->orgResult = malloc(sizeof(void *));
|
|
||||||
res->orgResult = NULL;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user