Changeset: 381803bf6a9c for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=381803bf6a9c
Modified Files:
sql/backends/monet5/sql_user.c
Branch: Jul2012
Log Message:
monet5_create_user: don't leak result of mcrypt_BackendSum on error (Coverity)
diffs (16 lines):
diff --git a/sql/backends/monet5/sql_user.c b/sql/backends/monet5/sql_user.c
--- a/sql/backends/monet5/sql_user.c
+++ b/sql/backends/monet5/sql_user.c
@@ -114,8 +114,11 @@ monet5_create_user(ptr _mvc, str user, s
pwd = passwd;
}
/* add the user to the M5 authorisation administration */
- if ((ret = AUTHaddUser(&uid, &c, &user, &pwd)) != MAL_SUCCEED)
+ if ((ret = AUTHaddUser(&uid, &c, &user, &pwd)) != MAL_SUCCEED) {
+ if (!enc)
+ free(pwd);
return ret;
+ }
if (!enc)
free(pwd);
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list