Unverified Commit 4fbcc61c authored by Arunprasad Rajkumar's avatar Arunprasad Rajkumar Committed by GitHub
Browse files

Fix crash on exit with --debug and PGCOPYDB_LOG_FILENAME (#589)



We close the FILE which is used to log into file before calling
the `copydb_cleanup_sysv_resources` which still uses log functions leads
to crash due to invalid FILE* access.

This commit fixes the crash by closing the FILE after calling the
cleanup function.

Signed-off-by: default avatarArunprasad Rajkumar <ar.arunprasad@gmail.com>
parent 06c9c99a
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