diff options
author | Günther Deschner <gd@samba.org> | 2007-01-09 13:24:33 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:17:00 -0500 |
commit | 7f88a7c948bec050ac34599922f1a76cced88f11 (patch) | |
tree | 61a5980f1b273d8a5e2ad73077dd8de754d920f8 /source3 | |
parent | 45e7b954cdf7eb2efc970f01fee452e98aed00ee (diff) | |
download | samba-7f88a7c948bec050ac34599922f1a76cced88f11.tar.gz samba-7f88a7c948bec050ac34599922f1a76cced88f11.tar.bz2 samba-7f88a7c948bec050ac34599922f1a76cced88f11.zip |
r20630: Fix some trivial memleaks.
Guenther
(This used to be commit 3bb94a081888eca69796b14057b551b078ee9a77)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/torture/nsstest.c | 3 |
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; } |