diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/cfuns-c.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/cfuns-c.c b/src/lib/cfuns-c.c index e7fa22ec..849af3c4 100644 --- a/src/lib/cfuns-c.c +++ b/src/lib/cfuns-c.c @@ -247,7 +247,11 @@ writeablep(char *path) is writable. */ char* dir = oa_dirname(path); code = stat(dir, &buf); +#ifdef __WIN32__ + LocalFree(dir); +#else free(dir); +#endif return (code == 0) && axiom_has_write_access(&buf) ? 2 : -1; } |