From 9d5cbcabb563027649160b34fc474b9e67af3aef Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Thu, 23 Jun 2011 22:40:48 +0200 Subject: [PATCH] Fix possible segmentation fault --- zathura.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zathura.c b/zathura.c index 71dc359..88dad9f 100644 --- a/zathura.c +++ b/zathura.c @@ -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);