[PATCH 21/42] Double free in disassemble_map()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Label 'out1' already frees 'word'; no need to do it here.

Signed-off-by: Hannes Reinecke <hare@xxxxxxx>
---
 libmultipath/dmparser.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/libmultipath/dmparser.c b/libmultipath/dmparser.c
index a45854d..5184c41 100644
--- a/libmultipath/dmparser.c
+++ b/libmultipath/dmparser.c
@@ -276,7 +276,6 @@ disassemble_map (vector pathvec, char * params, struct multipath * mpp)
 			num_pg_args = atoi(word);
 
 			if (merge_words(&mpp->selector, word, 1)) {
-				FREE(word);
 				goto out1;
 			}
 			FREE(word);
-- 
1.7.4.2

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel


[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux