diff options
| author | Orestis Floros <orestisflo@gmail.com> | 2020-05-01 14:14:53 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-01 14:14:53 +0200 | 
| commit | a1ed46a18a621008e36a3e6b26670f33ab031e0b (patch) | |
| tree | 4b49e85e5296bb094a60729e7a29e00dd744ee0c /i3status.c | |
| parent | ef03d7c4794d35cf322288c93577ea777a17c697 (diff) | |
| parent | 45a0b91141a6e3e942b8351e765817f2d931c5a2 (diff) | |
Merge pull request #416 from orestisfl/memleak
Fix various memory leaks
Diffstat (limited to 'i3status.c')
| -rw-r--r-- | i3status.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| @@ -207,6 +207,7 @@ static char *get_config_path(void) {      config_path = resolve_tilde("~/.i3status.conf");      if (path_exists(config_path))          return config_path; +    free(config_path);      char *buf = strdup(xdg_config_dirs);      char *tok = strtok(buf, ":");      while (tok != NULL) { @@ -230,7 +231,6 @@ static char *get_config_path(void) {      die("Unable to find the configuration file (looked at "          "~/.i3status.conf, $XDG_CONFIG_HOME/i3status/config, " SYSCONFDIR "/i3status.conf and $XDG_CONFIG_DIRS/i3status/config)"); -    return NULL;  }  /* @@ -807,4 +807,6 @@ int main(int argc, char *argv[]) {          struct timespec ts = {interval - 1 - (current_timeval.tv_sec % interval), (10e5 - current_timeval.tv_usec) * 1000};          nanosleep(&ts, NULL);      } + +    yajl_gen_free(json_gen);  } | 
