shared: Add missing free for avoiding memory leaks 42/116142/1
authorWook Song <wook16.song@samsung.com>
Wed, 22 Feb 2017 01:58:24 +0000 (10:58 +0900)
committerWook Song <wook16.song@samsung.com>
Wed, 22 Feb 2017 01:58:24 +0000 (10:58 +0900)
This patch adds missing free() for avoiding possible memory leaks in the
shared directory.

Change-Id: Ie95db189d3d94d08d865ad3d7470d801b47c6dc1
Signed-off-by: Wook Song <wook16.song@samsung.com>
src/shared/pass-systemd.c

index d418da2fb2adbac874b030e669e3daee8a37035b..b3a3c1234f0e8ac473885251508627efa6164558 100644 (file)
@@ -197,7 +197,7 @@ static char *pass_systemd_get_unit_dbus_path(const char *unit)
                        p += k+1;
                }
        }
-
+       free(path);
        return path;
 }