diff options
| author | yuangli <yuangli@mathworks.com> | 2022-08-09 19:23:54 +0100 |
|---|---|---|
| committer | yuangli <yuangli@mathworks.com> | 2022-08-09 19:23:54 +0100 |
| commit | 09b3d33d6dba7f4804b478a72dec3258405856c2 (patch) | |
| tree | ab8a2bd76918d3f32d35eb7cb6c62568089c8a3a /src/libgit2 | |
| parent | 829555a9382f74af5280ab6cc2ac505534a4cecb (diff) | |
| download | libgit2-09b3d33d6dba7f4804b478a72dec3258405856c2.tar.gz | |
fix memory leak
Diffstat (limited to 'src/libgit2')
| -rw-r--r-- | src/libgit2/transports/smart_pkt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libgit2/transports/smart_pkt.c b/src/libgit2/transports/smart_pkt.c index 5808b8816..832da450c 100644 --- a/src/libgit2/transports/smart_pkt.c +++ b/src/libgit2/transports/smart_pkt.c @@ -684,6 +684,8 @@ int git_pkt_buffer_wants( git_str_printf(buf, "%04x%s", (unsigned int)git_str_len(&shallow_buf) + 4, git_str_cstr(&shallow_buf)); + git_str_dispose(&shallow_buf); + if (git_str_oom(buf)) return -1; } |
