Commit 1d42b3ea authored by Committed by Manuel Pégourié-GonnardBrowse files
pem2der.c: fix double-free bug
Found with Clang's `scan-build` tool. load_file() allocates memory to a char** parameter. It then tries to fread() a file, and if that fails, frees the memory and returns to caller. However, the char** is not reset to NULL, which causes a double-free error when the caller later passes it to free().
Showing with 1 addition and 0 deletions