nscd: Fix double free in netgroupcache [BZ #27462]
commitdca565886b5e8bd7966e15f0ca42ee5cff686673
authorDJ Delorie <dj@redhat.com>
Thu, 25 Feb 2021 21:08:21 +0000 (25 16:08 -0500)
committerDJ Delorie <dj@redhat.com>
Tue, 2 Mar 2021 17:32:18 +0000 (2 12:32 -0500)
tree53fe3258cc1f561b046f3044edd1c44cda8e3c7f
parentdd1776e3275b89b8ff76e8cfd8cd283f51a9aaaf
nscd: Fix double free in netgroupcache [BZ #27462]

In commit 745664bd798ec8fd50438605948eea594179fba1 a use-after-free
was fixed, but this led to an occasional double-free.  This patch
tracks the "live" allocation better.

Tested manually by a third party.

Related: RHBZ 1927877

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
nscd/netgroupcache.c