From 487413c0584081de05a3fd794f30d03de99c00b0 Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Thu, 1 Jul 2010 16:31:27 -0600 Subject: Bug 610276 - fix coverity Defect Type: API usage errors issues https://bugzilla.redhat.com/show_bug.cgi?id=610276 Resolves: bug 610276 Bug Description: fix coverity Defect Type: API usage errors issues Reviewed by: nhosoi (Thanks!) Branch: HEAD Fix Description: Must call va_end after calling va_start. Platforms tested: RHEL5 x86_64 Flag Day: no Doc impact: no --- lib/libaccess/nseframe.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libaccess/nseframe.cpp') diff --git a/lib/libaccess/nseframe.cpp b/lib/libaccess/nseframe.cpp index b29e420f..4a023e1d 100644 --- a/lib/libaccess/nseframe.cpp +++ b/lib/libaccess/nseframe.cpp @@ -230,6 +230,7 @@ NSEFrame_t * nserrGenerate(NSErr_t * errp, long retcode, long errorid, esp = va_arg(ap, char *); efp->ef_errv[i] = STRDUP(esp); } + va_end(ap); /* Add the frame to the list (if any) */ if (errp) { -- cgit