diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-10-28 14:51:13 -0700 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-10-28 19:02:36 -0700 |
| commit | 3286c408eccb18c525ca123383f3ebf5097441bc (patch) | |
| tree | 4422fe16ab4f7b9cf713e0209cbb74fb4115889e /src/pkt.c | |
| parent | da37654d04617b4dacce6e7a4796007d2854624d (diff) | |
| download | libgit2-3286c408eccb18c525ca123383f3ebf5097441bc.tar.gz | |
global: Properly use `git__` memory wrappers
Ensure that all memory related functions (malloc, calloc, strdup, free,
etc) are using their respective `git__` wrappers.
Diffstat (limited to 'src/pkt.c')
| -rw-r--r-- | src/pkt.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -149,7 +149,7 @@ static int ref_pkt(git_pkt **out, const char *line, size_t len) out: if (error < GIT_SUCCESS) - free(pkt); + git__free(pkt); else *out = (git_pkt *)pkt; @@ -260,10 +260,10 @@ void git_pkt_free(git_pkt *pkt) { if(pkt->type == GIT_PKT_REF) { git_pkt_ref *p = (git_pkt_ref *) pkt; - free(p->head.name); + git__free(p->head.name); } - free(pkt); + git__free(pkt); } int git_pkt_buffer_flush(git_buf *buf) |
