summaryrefslogtreecommitdiffstats
path: root/lib/libaccess
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2010-06-30 14:51:18 -0600
committerRich Megginson <rmeggins@redhat.com>2010-07-01 15:51:25 -0600
commit830d55e8cc9d4a69f099b1c0ee00a93817c8fabb (patch)
treefa80371d5ad45a953971db9363f2001aadb9dc13 /lib/libaccess
parenta9a5a5d9fe0801988f51a77b4b11029349f67c10 (diff)
downloadds-bug609590.tar.gz
ds-bug609590.tar.xz
ds-bug609590.zip
Bug 609590 - fix coverity Defect Type: Memory - corruptions issuesbug609590
https://bugzilla.redhat.com/show_bug.cgi?id=609590 Resolves: bug 609590 Bug Description: fix coverity Defect Type: Memory - corruptions issues Reviewed by: nhosoi (Thanks!) Branch: HEAD Fix Description: To avoid a potential double free, set ipaddrs to NULL after freeing it. Platforms tested: RHEL5 x86_64 Flag Day: no Doc impact: no
Diffstat (limited to 'lib/libaccess')
-rw-r--r--lib/libaccess/lasdns.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libaccess/lasdns.cpp b/lib/libaccess/lasdns.cpp
index b345d1ba..3bcbba10 100644
--- a/lib/libaccess/lasdns.cpp
+++ b/lib/libaccess/lasdns.cpp
@@ -289,6 +289,7 @@ LASDnsBuild(NSErr_t *errp, char *attr_pattern, LASDnsContext_t *context, int ali
}
PERM_FREE(ipaddrs);
+ ipaddrs = NULL;
} /* if he */