Coverity CHECKED_RETURN - CID 12652

Bug #1100552 reported by Product Strategy Coverity Bug Uploader on 2013-01-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
BAMF
Medium
Marco Trevisan (Treviño)
0.4
Medium
Marco Trevisan (Treviño)
bamf (Ubuntu)
Undecided
Marco Trevisan (Treviño)

Bug Description

This bug is exported from the Coverity Integration Manager on Canonical's servers. For information on how this is done please see this website: https://wiki.ubuntu.com/CanonicalProductStrategy/Coverity
CID: 12652
Checker: CHECKED_RETURN
Category: No category available
CWE definition: http://cwe.mitre.org/data/definitions/252.html
File: /tmp/buildd/bamf-0.4.0daily13.01.11/src/bamf-application.c
Function: bamf_application_default_get_supported_mime_types
Code snippet:
107
108 GKeyFile* key_file = g_key_file_new ();
109 GError *error = NULL;
110
CID 12652 - CHECKED_RETURN
{CovLStrv2{{t{Calling function {0} without checking return value (as is done elsewhere {1} out of {2} times).}{"g_key_file_load_from_file(GKeyFile *, gchar const *, GKeyFileFlags, GError **)"}{4}{5}}}}
{CovLStrv2{{t{No check of the return value of {0}.}{"g_key_file_load_from_file(key_file, desktop_file, G_KEY_FILE_NONE, &error)"}}}}
111 g_key_file_load_from_file (key_file, desktop_file, (GKeyFileFlags) 0, &error);
112
113 if (error)
114 {
115 g_key_file_free (key_file);
116 g_error_free (error);

Related branches

Changed in bamf:
status: New → Fix Released
status: Fix Released → Fix Committed
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
milestone: none → 0.5.0
Changed in bamf (Ubuntu):
status: New → Fix Released
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)

Fix Released in Bamf BAMF 0.5.0.

Changed in bamf:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers