rpc_server: Coverity fix for CID 1273079
commitb57c77849af968e7a89df40d05b2e3ef7cef42c1
authorRajesh Joseph <rjoseph@redhat.com>
Tue, 31 Mar 2015 13:28:54 +0000 (31 18:58 +0530)
committerGünther Deschner <gd@samba.org>
Thu, 2 Apr 2015 17:38:22 +0000 (2 19:38 +0200)
treeb8be88cad6cc4c273ac9ce52a781760540e6dcf3
parentb542d1c83fd84d43e9441c28b80194964ec9bc73
rpc_server: Coverity fix for CID 1273079

leaked_storage: Variable pk going out of scope leaks the storage it points to.

On failure get_pk_from_raw_keypair_params function should free up
the private key (pk) it allocates internally.

Signed-off-by: Rajesh Joseph <rjoseph@redhat.com>
Reviewed-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Thu Apr  2 19:38:22 CEST 2015 on sn-devel-104
source4/rpc_server/backupkey/dcesrv_backupkey.c