Skip to content

Commit 8ca3108

Browse files
Fix leak freeing PatchData
1 parent 5926ba1 commit 8ca3108

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

generate/templates/manual/src/convenient_patch.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ void PatchDataFree(PatchData *patch) {
2929
}
3030
delete hunk;
3131
}
32+
delete patch->hunks;
3233
delete patch;
3334
}
3435

0 commit comments

Comments
 (0)