This is unnecessary.  `get_value` never allocates memory that the caller has to free.

I'll simplify this change and merge.