Commit 89127266 authored by Philipp Stephani's avatar Philipp Stephani

* test/data/emacs-module/mod-test.c (Fmod_test_string_a_to_b): Fix leak

parent fbe363f5
......@@ -262,7 +262,9 @@ Fmod_test_string_a_to_b (emacs_env *env, ptrdiff_t nargs, emacs_value args[],
if (buf[i] == 'a')
buf[i] = 'b';
return env->make_string (env, buf, size - 1);
emacs_value ret = env->make_string (env, buf, size - 1);
free (buf);
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment