[PATCH] crtools: Use -o argument directly

Cyrill Gorcunov gorcunov at openvz.org
Wed Oct 9 02:27:49 PDT 2013


There is no much point to strdup this value
obtained from command line. It sits in environment
and we don't modify it at all.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 crtools.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crtools.c b/crtools.c
index c2c3981..fe725bf 100644
--- a/crtools.c
+++ b/crtools.c
@@ -162,7 +162,7 @@ int main(int argc, char *argv[])
 			}
 			break;
 		case 'o':
-			opts.output = strdup(optarg);
+			opts.output = optarg;
 			if (log_init(optarg))
 				return -1;
 			log_inited = 1;
-- 
1.8.3.1


--ew6BAiZeqk4r7MaW--


More information about the CRIU mailing list