Skip to content

Commit

Permalink
quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Enchufa2 committed Jan 22, 2018
1 parent 312eeb8 commit 70a364a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/udunits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ void udunits_init(CharacterVector path) {
}

// [[Rcpp::export]]
void udunits_exit() { ut_free_system(sys); }
void udunits_exit() {
ut_free_system(sys);
sys = NULL;
}

// typedef std::vector<void *> ut_vec;

Expand Down

0 comments on commit 70a364a

Please sign in to comment.