Skip to content
Snippets Groups Projects
Commit 889848ed authored by Guillem Jover's avatar Guillem Jover
Browse files

libdpkg: Reset error context errmsg after free()

This makes sure we are never going to doubly free it.

Warned-by: gcc ASAN
Stable-Candidate: 1.19.x
parent 38cb8160
No related branches found
No related tags found
1 merge request!3Update to 1.20.9pureos1
......@@ -173,6 +173,7 @@ error_context_errmsg_free(struct error_context *ec)
{
if (ec->errmsg != emergency.errmsg)
free(ec->errmsg);
ec->errmsg = NULL;
}
static void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment