Skip to content

Commit

Permalink
Merge pull request #2354 from igchor/libvmmalloc_fix
Browse files Browse the repository at this point in the history
vmmalloc: fixed leak in destructor
  • Loading branch information
krzycz authored Nov 16, 2017
2 parents 9a0ed50 + 11217a7 commit aaf5b8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libvmmalloc/libvmmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -727,8 +727,10 @@ libvmmalloc_fini(void)
LOG(3, NULL);

char *env_str = os_getenv(VMMALLOC_LOG_STATS_VAR);
if ((env_str == NULL) || strcmp(env_str, "1") != 0)
if ((env_str == NULL) || strcmp(env_str, "1") != 0) {
common_fini();
return;
}

LOG_NONL(0, "\n========= system heap ========\n");
je_vmem_malloc_stats_print(
Expand Down

0 comments on commit aaf5b8e

Please sign in to comment.