Skip to content

Commit 6019f11

Browse files
author
kalibera
committed
Avoid relying on symbol re-mapping.
git-svn-id: https://svn.r-project.org/R/trunk@87319 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 2a507a9 commit 6019f11

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/gnuwin32/dos_wglob.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ globextend(const wchar_t *path, wglob_t *pglob, size_t *limitp)
818818
pathv = R_Calloc(newsize, wchar_t *);
819819
if (pathv == NULL) {
820820
if (pglob->gl_pathv) {
821-
Free(pglob->gl_pathv);
821+
R_Free(pglob->gl_pathv);
822822
pglob->gl_pathv = NULL;
823823
}
824824
return(GLOB_NOSPACE);
@@ -924,8 +924,8 @@ dos_wglobfree(wglob_t *pglob)
924924
pp = pglob->gl_pathv + pglob->gl_offs;
925925
for (i = pglob->gl_pathc; i--; ++pp)
926926
if (*pp)
927-
Free(*pp);
928-
Free(pglob->gl_pathv);
927+
R_Free(*pp);
928+
R_Free(pglob->gl_pathv);
929929
pglob->gl_pathv = NULL;
930930
}
931931
}

src/library/utils/src/windows/dialogs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* file dialogs.c
44
* Copyright (C) 1998--2003 Guido Masarotto and Brian Ripley
55
* Copyright (C) 2004 The R Foundation
6-
* Copyright (C) 2005--2023 The R Core Team
6+
* Copyright (C) 2005--2024 The R Core Team
77
*
88
* This program is free software; you can redistribute it and/or modify
99
* it under the terms of the GNU General Public License as published by
@@ -54,7 +54,7 @@ static void pbarFinalizer(SEXP ptr)
5454
if(pbar-> lab) del(pbar->lab);
5555
del(pbar->pb);
5656
del(pbar->wprog);
57-
Free(pbar);
57+
R_Free(pbar);
5858
R_ClearExternalPtr(ptr); /* not really needed */
5959
}
6060

0 commit comments

Comments
 (0)