~ubuntu-branches/ubuntu/trusty/keyutils/trusty

« back to all changes in this revision

Viewing changes to debian/patches/0001-memleak-from-realloc.patch

  • Committer: Package Import Robot
  • Author(s): Luk Claes
  • Date: 2013-09-11 07:41:59 UTC
  • mfrom: (1.1.6) (10.2.12 sid)
  • Revision ID: package-import@ubuntu.com-20130911074159-mnbytesze44tqu4v
Tags: 1.5.6-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
diff -Naurp keyutils.orig/keyutils.c keyutils/keyutils.c
5
5
--- keyutils.orig/keyutils.c
6
6
+++ keyutils/keyutils.c
7
 
@@ -221,6 +221,24 @@ long keyctl_instantiate_iov(key_serial_t
 
7
@@ -224,6 +224,24 @@ long keyctl_instantiate_iov(key_serial_t
8
8
        return ret;
9
9
 }
10
10
 
26
26
+}
27
27
+
28
28
+
29
 
 /*****************************************************************************/
30
 
 /*
31
 
  * fetch key description into an allocated buffer
32
 
@@ -250,7 +268,7 @@ int keyctl_describe_alloc(key_serial_t i
 
29
 long keyctl_invalidate(key_serial_t id)
 
30
 {
 
31
        return keyctl(KEYCTL_INVALIDATE, id);
 
32
@@ -258,7 +276,7 @@ int keyctl_describe_alloc(key_serial_t i
33
33
                        break;
34
34
 
35
35
                buflen = ret;
38
38
                if (!buf)
39
39
                        return -1;
40
40
        }
41
 
@@ -289,7 +307,7 @@ int keyctl_read_alloc(key_serial_t id, v
 
41
@@ -297,7 +315,7 @@ int keyctl_read_alloc(key_serial_t id, v
42
42
                        break;
43
43
 
44
44
                buflen = ret;