[phodav: 17/18] server: plug a small memleak
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [phodav: 17/18] server: plug a small memleak
- Date: Thu, 10 Apr 2014 17:52:30 +0000 (UTC)
commit 26a27955e92c3728be876f0745fd2eba87bbfe5c
Author: Marc-André Lureau <marcandre lureau gmail com>
Date: Thu Apr 10 19:42:14 2014 +0200
server: plug a small memleak
libphodav/phodav-server.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libphodav/phodav-server.c b/libphodav/phodav-server.c
index 40737b7..23e2a4a 100644
--- a/libphodav/phodav-server.c
+++ b/libphodav/phodav-server.c
@@ -91,6 +91,10 @@ server_get_path (PhodavServer *self, const gchar *_path)
p->path = path;
g_hash_table_insert (self->paths, p->path, path_ref (p));
}
+ else
+ {
+ g_free (path);
+ }
return p;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]