fix memleak in unum

This commit is contained in:
Lowly Worm 2017-12-08 21:23:32 -08:00
parent 7450ca3ceb
commit 1698f6073e

View File

@ -590,6 +590,7 @@ R_API int r_num_between(RNum *num, const char *input_value) {
ns[i] = r_num_math (num, r_list_pop_head (nums));
}
free (str);
r_list_free (nums);
return num->value = R_BETWEEN (ns[0], ns[1], ns[2]);
}