(sec_vfprintf): free encoded data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11393 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1998-2001 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1998-2002 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -387,9 +387,11 @@ sec_vfprintf(FILE *f, const char *fmt, va_list ap)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if(base64_encode(enc, len, &buf) < 0){
|
if(base64_encode(enc, len, &buf) < 0){
|
||||||
|
free(enc);
|
||||||
printf("Out of memory base64-encoding.\n");
|
printf("Out of memory base64-encoding.\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
free(enc);
|
||||||
#ifdef FTP_SERVER
|
#ifdef FTP_SERVER
|
||||||
if(command_prot == prot_safe)
|
if(command_prot == prot_safe)
|
||||||
fprintf(f, "631 %s\r\n", buf);
|
fprintf(f, "631 %s\r\n", buf);
|
||||||
|
Reference in New Issue
Block a user