Return explicit NULL on sepoltransNew() failure
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 30 May 2011 09:04:18 +0000 (12:04 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 30 May 2011 09:05:19 +0000 (12:05 +0300)
plugins/sepolicy.c

index 7f8ba5d..b4fa910 100644 (file)
@@ -328,9 +328,9 @@ static sepoltrans *sepoltransNew(void)
        }
        semanage_handle_destroy(pt->sh);
     }
-    pt = _free(pt);
+    free(pt);
 
-    return pt;
+    return NULL;
 }
 
 static sepoltrans *sepoltransFree(sepoltrans * pt)