commit bb787f0904b277323c9eed7a015bad19b89caad3 from: Stefan Sperling date: Thu Jul 25 12:59:43 2019 UTC fix a double-free in 'got update' error path commit - 426ebf2e17bcc7dd65efb6db32f200729b1f57c4 commit + bb787f0904b277323c9eed7a015bad19b89caad3 blob - cb742545ed221b63c6fe77744b828547386da0ad blob + 809cd0f8e06311739a9dcc37dbc9064641b509b9 --- got/got.c +++ got/got.c @@ -1129,6 +1129,7 @@ cmd_update(int argc, char *argv[]) } else { error = resolve_commit_arg(&commit_id, commit_id_str, repo); free(commit_id_str); + commit_id_str = NULL; if (error) goto done; error = got_object_id_str(&commit_id_str, commit_id);