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);