29 lines
756 B
Diff
29 lines
756 B
Diff
|
From 2fbeee2c3f7e8714610cb9fcd2f6d3d7daa62767 Mon Sep 17 00:00:00 2001
|
||
|
From: Peter Jones <pjones@redhat.com>
|
||
|
Date: Mon, 5 May 2014 16:09:09 -0400
|
||
|
Subject: [PATCH 06/22] Only free hard drive signatures if we've allocated
|
||
|
them.
|
||
|
|
||
|
Signed-off-by: Peter Jones <pjones@redhat.com>
|
||
|
---
|
||
|
src/lib/unparse_path.c | 3 ++-
|
||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/lib/unparse_path.c b/src/lib/unparse_path.c
|
||
|
index ffeda8e..030e7c8 100644
|
||
|
--- a/src/lib/unparse_path.c
|
||
|
+++ b/src/lib/unparse_path.c
|
||
|
@@ -352,7 +352,8 @@ unparse_media_hard_drive_path(char *buffer, size_t buffer_size,
|
||
|
get(b, hd->start),
|
||
|
get(c, hd->size),
|
||
|
sig);
|
||
|
- free(sig);
|
||
|
+ if (hd->signature_type == 0x02)
|
||
|
+ free(sig);
|
||
|
return rc;
|
||
|
}
|
||
|
|
||
|
--
|
||
|
1.9.3
|
||
|
|