diff options
Diffstat (limited to '')
-rw-r--r-- | examples/for-each-ref.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/for-each-ref.c b/examples/for-each-ref.c index a070674..f745bc3 100644 --- a/examples/for-each-ref.c +++ b/examples/for-each-ref.c @@ -25,6 +25,8 @@ static int show_ref(git_reference *ref, void *data) git_object_type2string(git_object_type(obj)), git_reference_name(ref)); + git_object_free(obj); + git_reference_free(ref); if (resolved) git_reference_free(resolved); return 0; |