Fix possible deallocation of a deallocated real_path

This commit is contained in:
Moritz Lipp 2011-09-30 12:32:29 +02:00
parent 8abe3d96d5
commit b5017f2396

View file

@ -209,7 +209,7 @@ zathura_document_open(zathura_t* zathura, const char* path, const char* password
if (plugin == NULL) {
girara_error("unknown file type\n");
free(real_path);
goto error_free;
}
document = g_malloc0(sizeof(zathura_document_t));