summaryrefslogtreecommitdiff
path: root/src/core/socket.c
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-12-22 11:03:53 +0100
committerDaniel Mack <daniel@zonque.org>2015-12-22 12:56:31 +0100
commita97b23d65a1800876a58235966f04e02f16f7f4d (patch)
treea2f04acc792bdb6d9a1f7feb52ca77cdde7c2133 /src/core/socket.c
parenta6cff5d3c0e9a5aef3f1440b089fdb9f30bf444f (diff)
socket: free fdname member
Plug a small memory leak.
Diffstat (limited to 'src/core/socket.c')
-rw-r--r--src/core/socket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/socket.c b/src/core/socket.c
index 7beec3644e..fb7632dee8 100644
--- a/src/core/socket.c
+++ b/src/core/socket.c
@@ -165,6 +165,8 @@ static void socket_done(Unit *u) {
free(s->user);
free(s->group);
+ s->fdname = mfree(s->fdname);
+
s->timer_event_source = sd_event_source_unref(s->timer_event_source);
}