Commit 1ab94e90 authored by Moritz Lipp's avatar Moritz Lipp

Resolve memory leak in test_plugin_get_path

parent 8e6baf0b
......@@ -92,7 +92,8 @@ START_TEST(test_plugin_get_path) {
/* corrupt plugin */
plugin->path = NULL;
fail_unless(zathura_plugin_get_path(plugin, &path) == ZATHURA_ERROR_UNKNOWN);
const char* null_path;
fail_unless(zathura_plugin_get_path(plugin, &null_path) == ZATHURA_ERROR_UNKNOWN);
plugin->path = (char*) path;
} END_TEST
......
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