diff options
Diffstat (limited to 'source4/param/loadparm.c')
-rw-r--r-- | source4/param/loadparm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index 882de1330e..669e0d7d22 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -2609,8 +2609,11 @@ struct loadparm_service *lp_service(struct loadparm_context *lp_ctx, serviceName = standard_sub_basic( lp_ctx->services[iService], lp_ctx->services[iService]->szService); - if (strequal(serviceName, service_name)) + if (strequal(serviceName, service_name)) { + talloc_free(serviceName); return lp_ctx->services[iService]; + } + talloc_free(serviceName); } } |