From a2002b8f690e12a7e8c75a3a9184570d27709c71 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 26 Aug 2011 13:10:35 +0200 Subject: pacman.c: Remove redundant strdup() in parsearg_global() config_set_arch() already calls strdup(). Remove strdup() from the config_set_arch() invocation to avoid a memory leak. Signed-off-by: Lukas Fleischer Signed-off-by: Dan McGee --- src/pacman/pacman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pacman/pacman.c') diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 71413bdd..d285a055 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -385,7 +385,7 @@ static int parsearg_global(int opt) switch(opt) { case OP_ARCH: check_optarg(); - config_set_arch(strdup(optarg)); + config_set_arch(optarg); break; case OP_ASK: check_optarg(); -- cgit v1.2.3-70-g09d2