Fix for memory leak in loadparm.c - donated by Branko Cibej <branko.cibej@hermes.si>
authorJeremy Allison <jra@samba.org>
Sat, 24 Jan 1998 12:26:17 +0000 (12:26 +0000)
committerJeremy Allison <jra@samba.org>
Sat, 24 Jan 1998 12:26:17 +0000 (12:26 +0000)
commit0bcb00e2bad999df859fdff59ce720d34de9b1ad
tree8ab74ab4bfc20a41c366c96a07603665842f02d7
parente3d5f6196d6eff707c78941696a368216e2a7410
Fix for memory leak in loadparm.c - donated by Branko Cibej <branko.cibej@hermes.si>
I checked this out and it looks ok - the bzero() in init_service() was
overwriting the pointers pservice->szService and pservice->copymap
that should have been freed in copy_service() the line later. This
fix frees pservice->szService and pservice->copymap inside free_service()
and sets them to zero so they won't be freed again.
Jeremy.
source/param/loadparm.c