From: Joern Engel Date: Tue, 2 Sep 2014 21:49:56 +0000 (-0400) Subject: target: Fix possible memory leak in aptpl_metadata parsing X-Git-Tag: fixes-against-v3.18-rc2~19^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d2135592d2ab5c8d7764a4f534afac64e563691;p=pandora-kernel.git target: Fix possible memory leak in aptpl_metadata parsing Each case of match_strdup could leak memory if the same argument was present before. I am not too concerned, as it would require a non-sensical combination like "target_lun=foo target_lun=bar", done with root privileges and even then leak just a few bytes per instance. But arg_p is different, as it will always leak memory. Let's plug that one. And while at it, replace some &args[0] with args. Found by coverity. Signed-off-by: Joern Engel Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed