summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-11-11 16:50:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:45 -0500
commitbc6d4e52806eb1ace282e983566660928214374c (patch)
tree33fd496319cddce53031acede349b6335e94cab1 /source
parent78c1c43523d787825bdb6d52e128bf0af5eccaae (diff)
downloadsamba-bc6d4e52806eb1ace282e983566660928214374c.tar.gz
samba-bc6d4e52806eb1ace282e983566660928214374c.tar.xz
samba-bc6d4e52806eb1ace282e983566660928214374c.zip
r19665: Fix a memleak
Diffstat (limited to 'source')
-rw-r--r--source/param/loadparm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index fe1dc8ec508..fea41a880f2 100644
--- a/source/param/loadparm.c
+++ b/source/param/loadparm.c
@@ -4573,7 +4573,7 @@ static int process_usershare_file(const char *dir_name, const char *file_name, i
/* Should we allow printers to be shared... ? */
ctx = talloc_init("usershare_sd_xctx");
if (!ctx) {
- SAFE_FREE(lines);
+ file_lines_free(lines);
return 1;
}
@@ -4581,11 +4581,11 @@ static int process_usershare_file(const char *dir_name, const char *file_name, i
iService, lines, numlines, sharepath,
comment, &psd, &guest_ok) != USERSHARE_OK) {
talloc_destroy(ctx);
- SAFE_FREE(lines);
+ file_lines_free(lines);
return -1;
}
- SAFE_FREE(lines);
+ file_lines_free(lines);
/* Everything ok - add the service possibly using a template. */
if (iService < 0) {