[libgit2-glib] patch: free git2 allocated data with free
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] patch: free git2 allocated data with free
- Date: Fri, 22 Nov 2013 08:51:07 +0000 (UTC)
commit 050167b36b3bb220374927ab14e78a38523e222f
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Fri Nov 22 09:50:29 2013 +0100
patch: free git2 allocated data with free
libgit2-glib/ggit-patch.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgit2-glib/ggit-patch.c b/libgit2-glib/ggit-patch.c
index 574bb50..9880577 100644
--- a/libgit2-glib/ggit-patch.c
+++ b/libgit2-glib/ggit-patch.c
@@ -104,7 +104,7 @@ ggit_patch_to_string (GgitPatch *patch,
if (ret == GIT_OK)
{
result = g_strdup (retval);
- g_free (retval);
+ free (retval);
}
return result;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]