Merge pull request #3579 from RedSoxFan/fix-workspace-gaps-double-free

cmd_workspace_gaps: fix double free on bad amount
This commit is contained in:
Drew DeVault 2019-02-05 14:41:52 +01:00 committed by GitHub
commit fb73f84d0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -76,7 +76,6 @@ static struct cmd_results *cmd_workspace_gaps(int argc, char **argv,
char *end;
int amount = strtol(argv[gaps_location + 2], &end, 10);
if (strlen(end)) {
free(end);
return cmd_results_new(CMD_FAILURE, expected);
}