]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nss-systemd: fix memory leak
authorjouyouyun <yanbowen@uniontech.com>
Thu, 6 Nov 2025 03:18:10 +0000 (11:18 +0800)
committerMike Yuan <me@yhndnzj.com>
Thu, 6 Nov 2025 20:10:25 +0000 (21:10 +0100)
src/nss-systemd/nss-systemd.c

index f9a7d6caeab7f9cb9b51e2168fcbbe5bf751fca6..ae0b5c803df0e008cd9403c2cddcec6a96bb3ee0 100644 (file)
@@ -726,7 +726,7 @@ enum nss_status _nss_systemd_getgrent_r(
                 int *errnop) {
 
         _cleanup_(group_record_unrefp) GroupRecord *gr = NULL;
-        _cleanup_free_ char **members = NULL;
+        _cleanup_strv_free_ char **members = NULL;
         int r;
 
         PROTECT_ERRNO;