mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-02-27 15:04:43 +01:00
Fix possible deallocation of a deallocated real_path
This commit is contained in:
parent
8abe3d96d5
commit
b5017f2396
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ zathura_document_open(zathura_t* zathura, const char* path, const char* password
|
||||||
|
|
||||||
if (plugin == NULL) {
|
if (plugin == NULL) {
|
||||||
girara_error("unknown file type\n");
|
girara_error("unknown file type\n");
|
||||||
free(real_path);
|
goto error_free;
|
||||||
}
|
}
|
||||||
|
|
||||||
document = g_malloc0(sizeof(zathura_document_t));
|
document = g_malloc0(sizeof(zathura_document_t));
|
||||||
|
|
Loading…
Add table
Reference in a new issue