Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-distro / recipes-security / gssproxy / files / Fix-memory-leak.patch
1 From abcd9ae04b1c3f9f0ebb72bd48737b08d5d7fe65 Mon Sep 17 00:00:00 2001
2 From: Simo Sorce <simo@redhat.com>
3 Date: Thu, 25 May 2017 21:35:37 -0400
4 Subject: [PATCH] Fix memory leak
5
6 Signed-off-by: Simo Sorce <simo@redhat.com>
7 Reviewed-by: Robbie Harwood <rharwood@redhat.com>
8 Related-to: #176
9 (cherry picked from commit 69a73d85eb3e70fdc7501794d5fd11a73a1d20fa)
10 ---
11  proxy/src/gp_export.c | 1 +
12  1 file changed, 1 insertion(+)
13
14 diff --git a/proxy/src/gp_export.c b/proxy/src/gp_export.c
15 index f44da50..4e081df 100644
16 --- a/proxy/src/gp_export.c
17 +++ b/proxy/src/gp_export.c
18 @@ -381,6 +381,7 @@ uint32_t gp_export_gssx_cred(uint32_t *min, struct gp_call_ctx *gpcall,
19  
20  done:
21      *min = ret_min;
22 +    gss_release_buffer(&ret_min, &token);
23      gss_release_name(&ret_min, &name);
24      gss_release_oid_set(&ret_min, &mechanisms);
25      return ret_maj;