From f1819c916a3ed8ba931de572ee3e5fe73bf37e0c Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Mon, 15 Feb 2021 10:27:19 -0600 Subject: [PATCH] Fix build error for 1.15.2 --- CHANGELOG.md | 2 +- meson.build | 2 +- src/conf/janetconf.h | 4 ++-- src/core/os.c | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a91e951a8..0fcc419ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Changelog All notable changes to this project will be documented in this file. -## 1.15.1 - 2021-02-15 +## 1.15.2 - 2021-02-15 - Fix bug in windows version of `os/spawn` and `os/execute` with setting environment variables. - Fix documentation typos. - Fix peg integer reading combinators when used with capture tags. diff --git a/meson.build b/meson.build index a0c5ce064..d36d918ec 100644 --- a/meson.build +++ b/meson.build @@ -20,7 +20,7 @@ project('janet', 'c', default_options : ['c_std=c99', 'b_lundef=false', 'default_library=both'], - version : '1.15.1') + version : '1.15.2') # Global settings janet_path = join_paths(get_option('prefix'), get_option('libdir'), 'janet') diff --git a/src/conf/janetconf.h b/src/conf/janetconf.h index aee756f8d..d6d5be7f3 100644 --- a/src/conf/janetconf.h +++ b/src/conf/janetconf.h @@ -5,9 +5,9 @@ #define JANET_VERSION_MAJOR 1 #define JANET_VERSION_MINOR 15 -#define JANET_VERSION_PATCH 1 +#define JANET_VERSION_PATCH 2 #define JANET_VERSION_EXTRA "" -#define JANET_VERSION "1.15.1" +#define JANET_VERSION "1.15.2" /* #define JANET_BUILD "local" */ diff --git a/src/core/os.c b/src/core/os.c index a16d472d3..2ebb09c09 100644 --- a/src/core/os.c +++ b/src/core/os.c @@ -249,13 +249,13 @@ static EnvBlock os_execute_env(int32_t argc, const Janet *argv) { static void os_execute_cleanup(EnvBlock envp, const char **child_argv) { #ifdef JANET_WINDOWS (void) child_argv; - janet_sfree(envp); + if (NULL != envp) janet_sfree(envp); #else janet_sfree((void *)child_argv); if (NULL != envp) { char **envitem = envp; while (*envitem != NULL) { - free(*envitem); + janet_sfree(*envitem); envitem++; } }