smbd: free talloc context if no quota records are available
authorUri Simchoni <uri@samba.org>
Sun, 18 Sep 2016 08:05:23 +0000 (11:05 +0300)
committerJeremy Allison <jra@samba.org>
Tue, 4 Oct 2016 00:00:22 +0000 (02:00 +0200)
commit175bc6f1e3442f5cb2258aaadf318ebf23c5d769
tree3b3b23fda8751372c0db8f1666fc2d299e15e588
parentdad6c2d5631ab9879dd4cd35231b2e8c8a9e8311
smbd: free talloc context if no quota records are available

When generating a list of user quota records, free the memory
context that controls this list if the list is empty. Otherwise,
the context remains unreferenced and memory is leaked.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12289

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/ntquotas.c