Fix possible segmentation fault

This commit is contained in:
Moritz Lipp 2011-06-23 22:40:48 +02:00
parent 48c2d01bef
commit 9d5cbcabb5

View File

@ -60,7 +60,8 @@ zathura_init(int argc, char* argv[])
printf("Error parsing command line arguments: %s\n", error->message);
g_option_context_free(context);
g_error_free(error);
goto error_free;
free(zathura);
return NULL;
}
g_option_context_free(context);