~3v1n0/bamf/coverity-fix-937398

« back to all changes in this revision

Viewing changes to lib/libbamf/bamf-matcher.c

  • Committer: Tarmac
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2012-02-09 19:59:08 UTC
  • mfrom: (435.2.2 libbamf-null-returns)
  • Revision ID: tarmac-20120209195908-nt602o1v764nrlao
Some bool are returned on non-gboolean functions, fixed them plus a gerror memory leak. Fixes: . Approved by Michal Hruby.

Show diffs side-by-side

added added

removed removed

Lines of Context:
471
471
      g_warning ("Failed to fetch paths: %s", error->message);
472
472
      g_error_free (error);
473
473
      
474
 
      return FALSE;
 
474
      return NULL;
475
475
    }
476
476
 
477
477
  g_return_val_if_fail (array, NULL);
512
512
      g_warning ("Failed to fetch paths: %s", error->message);
513
513
      g_error_free (error);
514
514
      
515
 
      return FALSE;
 
515
      return NULL;
516
516
    }
517
517
 
518
518
  g_return_val_if_fail (array, NULL);
555
555
      g_warning ("Failed to fetch paths: %s", error->message);
556
556
      g_error_free (error);
557
557
      
558
 
      return FALSE;
 
558
      return NULL;
559
559
    }
560
560
 
561
561
  g_return_val_if_fail (array, NULL);