Changeset: 4d222a05cdad for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/4d222a05cdad
Modified Files:
sql/backends/monet5/sql_user.c
Branch: userprofile
Log Message:
fix memory leak
diffs (19 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
@@ -830,6 +830,7 @@ monet5_user_set_def_schema(mvc *m, oid u
freeException(other);
GDKfree(username);
_DELETE(schema_path);
+ _DELETE(userrole);
freeException(path_err);
return ok == 0 ? -3 : -1;
}
@@ -843,6 +844,7 @@ monet5_user_set_def_schema(mvc *m, oid u
}
GDKfree(username);
_DELETE(schema_path);
+ _DELETE(userrole);
if ((other = mvc_rollback(m, 0, NULL, false)) != MAL_SUCCEED) {
freeException(other);
return -1;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]