~ubuntu-branches/ubuntu/oneiric/dma/oneiric

« back to all changes in this revision

Viewing changes to debian/patches/41-cppcheck.patch

  • Committer: Bazaar Package Importer
  • Author(s): Tarun Kumar Mall
  • Date: 2011-03-09 17:46:56 UTC
  • mfrom: (7.2.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110309174656-7s0buxoxvsos8ua1
Tags: 0.0.2010.06.17-10ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Patch 38_fix_ftbfs_binutils-gold.patch imported from previous
    ubuntu version.
  - Patch 38_fix_ftbfs_binutils-gold.patch renamed to
    42_fix_ftbfs_binutils-gold.patch
  - Patch 43_fix_ftbfs_Werror.patch added to fix 
    crypto.c:92:7: error: assignment discards 'const' qualifier 
    from pointer target type [-Werror] "Closes: #622052"

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Fix a memory leak reported by cppcheck.
 
2
Forwarded: http://gitorious.org/dma/dma/merge_requests/4
 
3
Author: Peter Pentchev <roam@ringlet.net>
 
4
Last-Update: 2011-02-23
 
5
 
 
6
--- a/crypto.c
 
7
+++ b/crypto.c
 
8
@@ -274,6 +274,7 @@
 
9
                syslog(LOG_DEBUG, "smarthost authentication:"
 
10
                       " AUTH cram-md5 not available: %s", neterr);
 
11
                /* if cram-md5 is not available */
 
12
+               free(temp);
 
13
                return (-1);
 
14
        }
 
15