mirror of https://github.com/FreeRDP/FreeRDP
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