Package: libtirpc / 0.2.5-1.2+deb9u1

04-fix-memory-leak.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
Index: libtirpc-0.2.5/src/svc_auth_gss.c
===================================================================
--- libtirpc-0.2.5.orig/src/svc_auth_gss.c
+++ libtirpc-0.2.5/src/svc_auth_gss.c
@@ -393,6 +393,7 @@ _svcauth_gss(struct svc_req *rqst, struc
 			return (AUTH_FAILED);
 		}
 		if ((gd = calloc(sizeof(*gd), 1)) == NULL) {
+			free(auth);
 			fprintf(stderr, "svcauth_gss: out_of_memory\n");
 			return (AUTH_FAILED);
 		}