Skip to content

Commit

Permalink
Fix build error for 1.15.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvin Rose committed Feb 15, 2021
1 parent dd14b24 commit f1819c9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
4 changes: 2 additions & 2 deletions src/conf/janetconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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" */

Expand Down
4 changes: 2 additions & 2 deletions src/core/os.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}
}
Expand Down

0 comments on commit f1819c9

Please sign in to comment.