~ubuntu-branches/ubuntu/utopic/thermald/utopic

« back to all changes in this revision

Viewing changes to debian/patches/0026-fix-leak-of-trip_ptr-in-read_trip_points.patch

  • Committer: Package Import Robot
  • Author(s): Colin King
  • Date: 2014-05-19 12:41:22 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140519124122-zan11arvjxtbqcq5
Tags: 1.2-1
* Adjust for coretemp path change
* Deny non root users to send system bus dbus messages
* Remove compile warning
* Remove rpmlint warning for manual page
* Remove old patches that are now included into version 1.2
* Sync up with version 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
From 89c36d73379431f1f7fe7354b23bf22a535085a4 Mon Sep 17 00:00:00 2001
2
 
From: Colin Ian King <colin.king@canonical.com>
3
 
Date: Mon, 10 Mar 2014 16:42:03 +0000
4
 
Subject: [PATCH 26/28] fix leak of trip_ptr in read_trip_points
5
 
 
6
 
trip_ptr is being leaked in read_trip_points, ensure we
7
 
free it before we return
8
 
 
9
 
Signed-off-by: Colin Ian King <colin.king@canonical.com>
10
 
---
11
 
 src/thd_zone_surface.cpp | 1 +
12
 
 1 file changed, 1 insertion(+)
13
 
 
14
 
diff --git a/src/thd_zone_surface.cpp b/src/thd_zone_surface.cpp
15
 
index a2838fd..7f1cbe9 100644
16
 
--- a/src/thd_zone_surface.cpp
17
 
+++ b/src/thd_zone_surface.cpp
18
 
@@ -73,6 +73,7 @@ int cthd_zone_surface::read_trip_points() {
19
 
        if (add) {
20
 
                trip_points.push_back(*trip_ptr);
21
 
        }
22
 
+       delete trip_ptr;
23
 
 
24
 
        return THD_SUCCESS;
25
 
 }
26
 
1.9.0
27