summaryrefslogtreecommitdiff
path: root/source3/torture/nsstest.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/torture/nsstest.c')
-rw-r--r--source3/torture/nsstest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/torture/nsstest.c b/source3/torture/nsstest.c
index 7673f92209..4b894fbfc3 100644
--- a/source3/torture/nsstest.c
+++ b/source3/torture/nsstest.c
@@ -190,12 +190,15 @@ again:
goto again;
}
if (status == NSS_STATUS_NOTFOUND) {
+ SAFE_FREE(buf);
return NULL;
}
if (status != NSS_STATUS_SUCCESS) {
report_nss_error("getgrent", status);
+ SAFE_FREE(buf);
return NULL;
}
+ SAFE_FREE(buf);
return &grp;
}