mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-23 18:03:30 +08:00
libfreerdp-codec/mppc: fix memory leak.
This commit is contained in:
parent
71e7e1c23d
commit
ba784fde67
@ -1445,5 +1445,10 @@ void mppc_dec_free(struct rdp_mppc_dec* dec)
|
||||
dec->history_buf = NULL;
|
||||
dec->history_ptr = NULL;
|
||||
}
|
||||
if (dec->offset_cache)
|
||||
{
|
||||
xfree(dec->offset_cache);
|
||||
dec->offset_cache = NULL;
|
||||
}
|
||||
xfree(dec);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user