Changeset: 19c9110dad99 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/19c9110dad99
Modified Files:
        sql/backends/monet5/sql_gencode.c
Branch: resource_management
Log Message:

small  fix


diffs (29 lines):

diff --git a/sql/backends/monet5/sql_gencode.c 
b/sql/backends/monet5/sql_gencode.c
--- a/sql/backends/monet5/sql_gencode.c
+++ b/sql/backends/monet5/sql_gencode.c
@@ -444,7 +444,7 @@ static int
        if (p == NULL) {
                if (!temp) {
                        GDKfree(username);
-                       GDKfree(password);
+                       //GDKfree(password);
                }
                sql_error(m, 10, SQLSTATE(HY013) MAL_MALLOC_FAIL);
                goto cleanup;
@@ -456,13 +456,13 @@ static int
        pwlen = strlen(password);
     pwhash = (char*)GDKmalloc(pwlen + 2);
        if (pwhash == NULL) {
-               if (!temp)
-                       GDKfree(password);
+               //if (!temp)
+               //      GDKfree(password);
                goto cleanup;
        }
        if (!temp) {
                strconcat_len(pwhash, pwlen + 2, "\1", password, NULL);
-               GDKfree(password);
+               //GDKfree(password);
        } else {
                strconcat_len(pwhash, pwlen + 2, "", password, NULL);
        }
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to