Commit c40f8809 authored by Tim Wickberg's avatar Tim Wickberg
Browse files

Fix potential memory leak in unpack_bit_str_hex().

The safe_unpackstr_xmalloc() call could jump to unpack_error,
which would leak memory allocated for bitmap. Allocate only after
the unpackstr has succeeded.

Coverity 160092 (+ more due to macro expansion leading to repeats).
parent f40e1c01
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment