[tracker/wip/carlosg/coverity-warnings: 2/18] portal: Fix double error free
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/coverity-warnings: 2/18] portal: Fix double error free
- Date: Sun, 21 Mar 2021 20:56:34 +0000 (UTC)
commit ca94fdb09750123cdbea8e8367d861070f5e04d4
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Mar 20 10:37:30 2021 +0100
portal: Fix double error free
This variable is already g_autoptr, no need to free it in the
error paths.
CID: #1501111
src/portal/tracker-main.c | 1 -
1 file changed, 1 deletion(-)
---
diff --git a/src/portal/tracker-main.c b/src/portal/tracker-main.c
index 8c0429c76..182d3e509 100644
--- a/src/portal/tracker-main.c
+++ b/src/portal/tracker-main.c
@@ -107,7 +107,6 @@ main (int argc, char *argv[])
if (!g_option_context_parse (context, &argc, (char***) &argv, &error)) {
g_printerr ("%s, %s\n", _("Unrecognized options"), error->message);
- g_error_free (error);
return EXIT_FAILURE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]