From 53300a072854c1102c63f25366d4bfd79f952f1afafecec0ed9ec484fd75924e Mon Sep 17 00:00:00 2001 From: Michal Seben Date: Wed, 16 Sep 2009 15:14:52 +0000 Subject: [PATCH] - added leak-fix.patch [bnc#538942] OBS-URL: https://build.opensuse.org/package/show/Base:System/hdparm?expand=0&rev=8 --- hdparm-9.22-leak-fix.patch | 11 +++++++++++ hdparm.changes | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 hdparm-9.22-leak-fix.patch diff --git a/hdparm-9.22-leak-fix.patch b/hdparm-9.22-leak-fix.patch new file mode 100644 index 0000000..ec0cdd6 --- /dev/null +++ b/hdparm-9.22-leak-fix.patch @@ -0,0 +1,11 @@ +--- hdparm.c 2009-09-16 17:10:58.000000000 +0200 ++++ hdparm.c 2009-08-02 22:08:56.000000000 +0200 +@@ -880,7 +880,7 @@ + { + __u64 start_lba; + int i, err, shortened = 0; +- char *fdevname = strdup(devname); ++ char *fdevname = strdupa(devname); + + err = get_dev_geometry(fd, NULL, NULL, NULL, &start_lba, NULL); + if (err) diff --git a/hdparm.changes b/hdparm.changes index 9f0f420..b2f907a 100644 --- a/hdparm.changes +++ b/hdparm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 16 17:12:55 CEST 2009 - mseben@novell.com + +- added leak-fix.patch [bnc#538942] + ------------------------------------------------------------------- Wed Aug 12 14:10:47 CEST 2009 - mseben@suse.cz