Fix Coverity #1129524, resource leak.

This commit is contained in:
Michael Drake 2013-11-18 14:19:27 +00:00
parent c80229e256
commit 3eb65bb54f
1 changed files with 3 additions and 2 deletions

View File

@ -489,14 +489,15 @@ static void gui_init(int argc, char** argv, char **respath)
NULL,
NULL);
nsurl_unref(url);
free(addr);
}
free(addr);
if (error != NSERROR_OK) {
warn_user(messages_get_errorcode(error), 0);
} else {
netsurf_main_loop();
}
}