summaryrefslogtreecommitdiff
path: root/builtin-reset.c
diff options
context:
space:
mode:
authorLibravatar Brandon Casey <casey@nrlssc.navy.mil>2008-08-21 19:16:30 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-08-22 00:15:37 -0700
commit2cb1f36d5098060a4bac182da16ceed3197a57c2 (patch)
treef307204f169aec5535a89c246f79f7df537190c0 /builtin-reset.c
parentfilter-branch: Grok special characters in tag names (diff)
downloadtgif-2cb1f36d5098060a4bac182da16ceed3197a57c2.tar.xz
remote.c: add a function for deleting a refspec array and use it (twice)
A number of call sites allocate memory for a refspec array, populate its members with heap memory, and then free only the refspec pointer while leaking the memory allocated for the member elements. Provide a function for freeing the elements of a refspec array and the array itself. Caution to callers: code paths must be checked to ensure that the refspec members "src" and "dst" can be passed to free. Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-reset.c')
0 files changed, 0 insertions, 0 deletions