mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-11 02:13:45 +01:00
Fix memory leak
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
ce7f53e5e9
commit
fdd843e116
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user