s3/libsmb: Free memdup'd local variable
authorJose A. Rivera <jarrpa@redhat.com>
Thu, 20 Feb 2014 15:14:59 +0000 (09:14 -0600)
committerSimo Sorce <idra@samba.org>
Fri, 21 Feb 2014 23:58:23 +0000 (00:58 +0100)
commit2b77b072862accc3fffddc964740917102898567
treee66b7dc19f27117f1cc11ecf9d6a353630abc6cf
parent9a9e56943d186e5a8655b5d731a339e453da8ae8
s3/libsmb: Free memdup'd local variable

secrets_fetch_machine_password() sets pwd to point to memdup()'d (and thus
malloc()'d) memory. This memory should be freed before we go out of scope.

Change-Id: I07e575819c309fa5b85627dce2eb969bc720ce4e
Coverity-Id: 1168001
Reviewed-by: Ira Cooper <ira@samba.org>
Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
Reviewed-by: Simo Sorce <idra@samba.org>
Autobuild-User(master): Simo Sorce <idra@samba.org>
Autobuild-Date(master): Sat Feb 22 00:58:23 CET 2014 on sn-devel-104
source3/libsmb/trusts_util.c