uwrap: Do not leak groups_str
authorAndreas Schneider <asn@samba.org>
Fri, 14 Jul 2017 07:07:19 +0000 (09:07 +0200)
committerAndreas Schneider <asn@samba.org>
Fri, 14 Jul 2017 13:19:55 +0000 (15:19 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
src/uid_wrapper.c

index 6e39eb67b27b598d1afb44433bb3b0ec6c7adb6b..0388ad930527d3eb1d43b734f068bce8206cbde6 100644 (file)
@@ -1034,6 +1034,7 @@ static void uwrap_init_env(struct uwrap_thread *id)
 
                                p = strtok_r(NULL, ",", &saveptr);
                        }
+                       SAFE_FREE(groups_str);
                }
 
                if (i != ngroups) {