Changeset: 1b5702b1d960 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1b5702b1d960
Modified Files:
        monetdb5/mal/mal_linker.c
Branch: Jun2020
Log Message:

If realloc to smaller size fails, just use the original.
Not that this is ever going to happen...


diffs (12 lines):

diff --git a/monetdb5/mal/mal_linker.c b/monetdb5/mal/mal_linker.c
--- a/monetdb5/mal/mal_linker.c
+++ b/monetdb5/mal/mal_linker.c
@@ -387,7 +387,7 @@ locate_file(const char *basename, const 
                                close(fd);
                                tmp = GDKrealloc(fullname, strlen(fullname) + 
1);
                                if (tmp == NULL)
-                                       GDKfree(fullname);
+                                       return fullname;
                                return tmp;
                        }
                }
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to