diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2019-02-08 19:04:24 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2019-02-08 19:04:24 +0100 |
commit | 26325e3e684dc87b9751750d2a98ba6a61f8f055 (patch) | |
tree | 432f5befc4ca54bba1e703389d3bedc513d2db63 /src | |
parent | 3f993746b2ad674f204f23daa85ada0e0c84865a (diff) | |
download | blogc-26325e3e684dc87b9751750d2a98ba6a61f8f055.tar.gz blogc-26325e3e684dc87b9751750d2a98ba6a61f8f055.tar.bz2 blogc-26325e3e684dc87b9751750d2a98ba6a61f8f055.zip |
blogc: sysinfo: fix memory leak
Diffstat (limited to 'src')
-rw-r--r-- | src/blogc/sysinfo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/blogc/sysinfo.c b/src/blogc/sysinfo.c index 9d03b61..8d9a810 100644 --- a/src/blogc/sysinfo.c +++ b/src/blogc/sysinfo.c @@ -139,6 +139,7 @@ blogc_sysinfo_get_inside_docker(void) bc_error_t *err = NULL; char *contents = bc_file_get_contents("/proc/1/cgroup", false, &len, &err); if (err != NULL) { + bc_error_free(err); inside_docker = false; return inside_docker; } |