diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-08-28 12:25:58 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-08-28 12:45:51 +0200 |
commit | fa9838ddd62ea31f8aea99757916a16d76b31cbc (patch) | |
tree | 2bb3f4326147e4758ec788aa321645d86385779f /src/libsystemd-terminal/sysview.c | |
parent | 200716a628b70fe723e7d4e09bb2ece10c10bdc0 (diff) |
terminal: free sysview-device names on destruction
Don't leak the device-names during device destruction in sysview. Somehow,
the device-name is "const char*", so make it "char*" first to avoid
warnings when calling free() on it.
Diffstat (limited to 'src/libsystemd-terminal/sysview.c')
-rw-r--r-- | src/libsystemd-terminal/sysview.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd-terminal/sysview.c b/src/libsystemd-terminal/sysview.c index f5363dedf4..bd345fa22e 100644 --- a/src/libsystemd-terminal/sysview.c +++ b/src/libsystemd-terminal/sysview.c @@ -98,6 +98,7 @@ sysview_device *sysview_device_free(sysview_device *device) { break; } + free(device->name); free(device); return NULL; |