Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
899fd4c5
Unverified
Commit
899fd4c5
authored
Feb 18, 2022
by
Edward Thomson
Committed by
GitHub
Feb 18, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6223 from libgit2/ethomson/xdiff
xdiff: use xdl_free not free
parents
1afad26e
b722c45d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/xdiff/xdiff.h
+2
-2
src/xdiff/xmerge.c
+2
-2
No files found.
src/xdiff/xdiff.h
View file @
899fd4c5
...
...
@@ -23,12 +23,12 @@
#if !defined(XDIFF_H)
#define XDIFF_H
#include "git-xdiff.h"
#ifdef __cplusplus
extern
"C"
{
#endif
/* #ifdef __cplusplus */
#include "git-xdiff.h"
/* xpparm_t.flags */
#define XDF_NEED_MINIMAL (1 << 0)
...
...
src/xdiff/xmerge.c
View file @
899fd4c5
...
...
@@ -88,7 +88,7 @@ static int xdl_cleanup_merge(xdmerge_t *c)
if
(
c
->
mode
==
0
)
count
++
;
next_c
=
c
->
next
;
free
(
c
);
xdl_
free
(
c
);
}
return
count
;
}
...
...
@@ -456,7 +456,7 @@ static void xdl_merge_two_conflicts(xdmerge_t *m)
m
->
chg1
=
next_m
->
i1
+
next_m
->
chg1
-
m
->
i1
;
m
->
chg2
=
next_m
->
i2
+
next_m
->
chg2
-
m
->
i2
;
m
->
next
=
next_m
->
next
;
free
(
next_m
);
xdl_
free
(
next_m
);
}
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment