mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 23:05:59 +01:00
Fix memory leak
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
ce7f53e5e9
commit
fdd843e116
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue