Changeset: d7f549c34911 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d7f549c34911
Modified Files:
monetdb5/mal/mal_import.c
Branch: malparsing
Log Message:
Avoid accessing freed storage
diffs (14 lines):
diff --git a/monetdb5/mal/mal_import.c b/monetdb5/mal/mal_import.c
--- a/monetdb5/mal/mal_import.c
+++ b/monetdb5/mal/mal_import.c
@@ -114,8 +114,9 @@ evalFile(Client cntxt, str fname, int li
fd = malOpenSource(files[i]);
if (fd == 0 || mnstr_errnr(fd) == MNSTR_OPEN_ERROR) {
if(fd) mnstr_destroy(fd);
+ msg = createException(MAL,"mal.import", "#WARNING:
could not open file: %s\n", files[i]);
GDKfree(base);
- throw(MAL,"mal.import", "#WARNING: could not open file:
%s\n", files[i]);
+ return msg;
}
if( included){
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list