Changeset: d95c5793f0ec for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d95c5793f0ec Modified Files: monetdb5/mal/mal_authorize.c Branch: Jan2014 Log Message:
Close resource leak: no need to strdup an already malloced value. diffs (12 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 @@ -588,7 +588,7 @@ AUTHgetPasswordHash(str *ret, Client *c, /* decypher the password */ rethrow("changePassword", tmp, AUTHdecypherValue(&passwd, &tmp)); - *ret = GDKstrdup(passwd); + *ret = passwd; return(NULL); } _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list