From 931b31c444360007186130908a456c3cda960dba Mon Sep 17 00:00:00 2001 From: alexpeshkoff Date: Mon, 8 Apr 2013 15:05:22 +0000 Subject: [PATCH] Fixed leak, found by Claudio. Fixed diagnostics. --- src/auth/SecureRemotePassword/manage/SrpManagement.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/auth/SecureRemotePassword/manage/SrpManagement.cpp b/src/auth/SecureRemotePassword/manage/SrpManagement.cpp index 551a19395f..d861b75e66 100644 --- a/src/auth/SecureRemotePassword/manage/SrpManagement.cpp +++ b/src/auth/SecureRemotePassword/manage/SrpManagement.cpp @@ -422,7 +422,8 @@ public: if (!checkCount(status, &upCount, isc_info_update_count)) { - return -1; + stmt->release(); + return GsecMsg22; } stmt->free(status); @@ -458,7 +459,8 @@ public: if (!checkCount(status, &delCount, isc_info_delete_count)) { - return -1; + stmt->release(); + return GsecMsg22; } stmt->free(status);