Changeset: 3f9a1a9e5856 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3f9a1a9e5856
Modified Files:
monetdb5/mal/mal_authorize.c
Branch: Jan2014
Log Message:
Value was not allocated if call failed.
diffs (19 lines):
diff --git a/monetdb5/mal/mal_authorize.c b/monetdb5/mal/mal_authorize.c
--- a/monetdb5/mal/mal_authorize.c
+++ b/monetdb5/mal/mal_authorize.c
@@ -413,7 +413,6 @@ AUTHchangePassword(Client *c, str *oldpa
/* decypher the password */
msg= AUTHdecypherValue(&hash, &tmp);
if ( msg){
- GDKfree(hash);
return msg;
}
if (strcmp(hash, *oldpass) != 0){
@@ -425,7 +424,6 @@ AUTHchangePassword(Client *c, str *oldpa
/* cypher the password */
msg= AUTHcypherValue(&hash, passwd);
if ( msg){
- GDKfree(hash);
return msg;
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list