libfreerdp-codec/mppc: fix memory leak.

This commit is contained in:
Vic Lee 2012-06-28 15:26:05 +08:00
parent 71e7e1c23d
commit ba784fde67
1 changed files with 5 additions and 0 deletions

View File

@ -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);
}