Home GnuPG
Diffusion GnuPG b8b4d5c9e55c

avoid use of freed pointer
b8b4d5c9e55cUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

avoid use of freed pointer

Without this patch, pk2 would be freed twice.

From 2a18a4b757e0896e738fefbbaa8ff8c23a9edf89 Mon Sep 17 00:00:00 2001

From: Jim Meyering <meyering@redhat.com>
Date: Tue, 20 Sep 2011 16:20:39 +0200
Subject: [PATCH] avoid use of freed pointer

If we free pk2 at the top of the for-loop, set it to NULL
so that we don't free it again just before returning.

  • revoke.c (gen_desig_revoke): Don't use pk2 after freeing it.

Details

Provenance
meyeringAuthored on Sep 20 2011, 4:26 PM
wernerCommitted on Sep 20 2011, 6:12 PM
Parents
rG7c000f18de5e: Replace gcry_md_start_debug by gcry_md_debug.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rGb8b4d5c9e55c: avoid use of freed pointer (authored by Jim Meyering <jim@meyering.net>).Sep 20 2011, 6:12 PM