mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-09 04:38:10 -05:00
Fix memory stomp in err_malloc
This commit is contained in:
parent
41746a0326
commit
d334bfdb96
@ -146,7 +146,7 @@ void *err_malloc(char *file, int line, size_t size) {
|
|||||||
err_leakcheck();
|
err_leakcheck();
|
||||||
DPRINTF(ERR_DEBUG,"---\n");
|
DPRINTF(ERR_DEBUG,"---\n");
|
||||||
|
|
||||||
pnew=(ERR_LEAK*)malloc(sizeof(pnew));
|
pnew=(ERR_LEAK*)malloc(sizeof(ERR_LEAK));
|
||||||
if(!pnew)
|
if(!pnew)
|
||||||
log_err(1,"Error: cannot allocate leak struct\n");
|
log_err(1,"Error: cannot allocate leak struct\n");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user