Commit f0b1f1e
builtin/apply.c: fix a memleak
oldlines is allocated earlier in the function and also freed on the
successful code path.
Signed-off-by: Stefan Beller <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 1b7cb89 commit f0b1f1e
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2776 | 2776 | | |
2777 | 2777 | | |
2778 | 2778 | | |
2779 | | - | |
| 2779 | + | |
| 2780 | + | |
2780 | 2781 | | |
2781 | 2782 | | |
2782 | 2783 | | |
| |||
2915 | 2916 | | |
2916 | 2917 | | |
2917 | 2918 | | |
| 2919 | + | |
2918 | 2920 | | |
2919 | 2921 | | |
2920 | 2922 | | |
| |||
0 commit comments