Fix memory leak

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2015-10-07 20:48:34 +02:00
parent ce7f53e5e9
commit fdd843e116

View File

@ -192,6 +192,7 @@ main(int argc, char* argv[])
char* string = zathura_get_version_string(zathura, false); char* string = zathura_get_version_string(zathura, false);
if (string != NULL) { if (string != NULL) {
fprintf(stdout, "%s\n", string); fprintf(stdout, "%s\n", string);
g_free(string);
} }
zathura_free(zathura); zathura_free(zathura);