From: Jens Axboe Date: Mon, 14 Apr 2014 19:29:52 +0000 (-0600) Subject: init: fix leak bug fix from commit 60c5ec73 X-Git-Tag: fio-2.1.9~23 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=6cfe9a8c89c2b8fb0b697e2f5f852ce6a5e82a2a init: fix leak bug fix from commit 60c5ec73 Signed-off-by: Jens Axboe --- diff --git a/init.c b/init.c index fcc135e6..569ad858 100644 --- a/init.c +++ b/init.c @@ -1938,8 +1938,8 @@ int parse_cmd_line(int argc, char *argv[], int client_type) backend = 1; break; case 'D': - if (optarg) - free(optarg); + if (pid_file) + free(pid_file); pid_file = strdup(optarg); break; case 'I':