Skip to content

Commit

Permalink
Forgot to acquire the runtime back.. :-o. Fixes: #1
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Apr 27, 2022
1 parent e802096 commit c2a1dc7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
0.0.2 (2022-04-27)
======
* Fix segfault (#1)

0.0.1 (2022-02-14)
======
* Initial release 💝
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(lang dune 2.8)
(version 0.0.1)
(version 0.0.2)
(name mem_usage)
(source (github savonet/ocaml-mem_usage))
(license GPL-2.0)
Expand Down
1 change: 1 addition & 0 deletions lib/mem_usage.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ CAMLprim value ocaml_mem_usage_mem_usage(value unit) {
}
fclose(file);
}
caml_acquire_runtime_system();

ret = caml_alloc_tuple(6);
Store_field(ret, 0, Val_int(total_virtual_memory));
Expand Down
4 changes: 2 additions & 2 deletions mem_usage.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.0.1"
version: "0.0.2"
synopsis: "Cross-platform stats about memory usage"
maintainer: ["The Savonet Team <[email protected]>"]
authors: ["Romain Beauxis <[email protected]>"]
Expand All @@ -12,7 +12,7 @@ depends: [
"dune" {>= "2.8"}
"odoc" {with-doc}
]
conflicts: ["base-domain"]
conflicts: ["base-domains"]
build: [
["dune" "subst"] {dev}
[
Expand Down

0 comments on commit c2a1dc7

Please sign in to comment.