~darkxst/ubuntu/saucy/gdm/lp1212408

« back to all changes in this revision

Viewing changes to debian/patches/51_selinux_memleak.patch

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette
  • Date: 2008-09-02 10:37:20 UTC
  • mfrom: (1.4.27 upstream)
  • mto: This revision was merged to the branch mainline in revision 261.
  • Revision ID: james.westby@ubuntu.com-20080902103720-p810vv530hqj45wg
Tags: 2.20.7-3
* Install the debian-moreblue-orbit theme, thanks Andre Luiz Rodrigues 
  Ferreira. Closes: #497440.
* 35_gdm.conf.patch: make it the default.
* copyright: fix encoding.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: gdm-2.20.7/daemon/slave.c
 
2
===================================================================
 
3
--- gdm-2.20.7.orig/daemon/slave.c      2008-08-20 15:52:46.379361134 +0200
 
4
+++ gdm-2.20.7/daemon/slave.c   2008-08-20 15:52:59.487356494 +0200
 
5
@@ -3546,8 +3546,11 @@
 
6
        if (is_selinux_enabled () <= 0)
 
7
                return TRUE;
 
8
 
 
9
-       if (getseuserbyname(login, &seuser, &level) == 0)
 
10
+       if (getseuserbyname(login, &seuser, &level) == 0) {
 
11
                ret=get_default_context_with_level(seuser, level, 0, &scontext);
 
12
+               free(seuser);
 
13
+               free(level);
 
14
+       }
 
15
 
 
16
        if (ret < 0) {
 
17
                gdm_error ("SELinux gdm login: unable to obtain default security context for %s.", login);