On Tue, 2014-09-02 at 17:49 -0400, Joern Engel wrote: > 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 <joern@xxxxxxxxx> > --- > drivers/target/target_core_configfs.c | 22 ++++++++-------------- > 1 file changed, 8 insertions(+), 14 deletions(-) > Applied to target-pending/for-next. -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html