diff --git a/sysinfo.odin b/sysinfo.odin index f4cf63f..eb3f617 100644 --- a/sysinfo.odin +++ b/sysinfo.odin @@ -131,6 +131,7 @@ get_hostname :: proc() -> Maybe(string) { if !ok { return nil } + defer delete(data) hostname, str_ok := strings.remove_all(string(data), "\n") if !ok {