diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-04-30 22:17:15 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-04-30 22:22:12 -0700 |
| commit | 6dfadc8981a3f2fd3fb552eb956fe12a542f8ee8 (patch) | |
| tree | 6ceb2453d4662d4234cc7049ca2c786c4349e629 /combine-diff.c | |
| parent | Git 2.36 (diff) | |
| download | git-6dfadc8981a3f2fd3fb552eb956fe12a542f8ee8.tar.gz git-6dfadc8981a3f2fd3fb552eb956fe12a542f8ee8.zip | |
clone: plug a miniscule leak
The remote_name variable is first assigned a copy of the value of
the "clone.defaultremotename" configuration variable and then by the
value of the "--origin" command line option. The former is prepared
to see multiple instances of the configuration variable by freeing
the current value of the variable before a copy of the newly
discovered value gets assigned to it. The latter however blindly
assigned a copy of the new value to the variable, thereby leaking
the value read from the configuration variable.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'combine-diff.c')
0 files changed, 0 insertions, 0 deletions
