git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78c1c43
)
r19665: Fix a memleak
author
Volker Lendecke
<vlendec@samba.org>
Sat, 11 Nov 2006 16:50:38 +0000
(16:50 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:15:45 +0000
(12:15 -0500)
source/param/loadparm.c
patch
|
blob
|
history
diff --git
a/source/param/loadparm.c
b/source/param/loadparm.c
index fe1dc8ec5085dc33ac05421b2a69c27c0a39de69..fea41a880f27ffb265aa740689d48fff53f9387b 100644
(file)
--- 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) {