[systemd-commits] src/udev

Tom Gundersen tomegun at kemper.freedesktop.org
Wed Jun 4 03:58:59 PDT 2014


 src/udev/net/link-config.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit edf029b7fd9a5853a87d3ca99aac2922bb8a277e
Author: Tom Gundersen <teg at jklm.no>
Date:   Wed Jun 4 12:34:23 2014 +0200

    udev: link-config - fix mem leak
    
    Reported by Kay.

diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c
index 8234598..a9acc3d 100644
--- a/src/udev/net/link-config.c
+++ b/src/udev/net/link-config.c
@@ -118,6 +118,7 @@ static void link_configs_free(link_config_ctx *ctx) {
                 free(link->match_type);
                 free(link->description);
                 free(link->alias);
+                free(link->name_policy);
 
                 free(link);
         }
@@ -204,7 +205,8 @@ static bool enable_name_policy(void) {
 
 int link_config_load(link_config_ctx *ctx) {
         int r;
-        char **files, **f;
+        _cleanup_strv_free_ char **files;
+        char **f;
 
         link_configs_free(ctx);
 



More information about the systemd-commits mailing list