* rel_buffer.c (generic_gss_release_buffer): Free buffer even if
length is zero. This avoids memory leaks in some cases.
ticket: new
target_version: 1.4.3
tags: pullup
component: krb5-libs
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17388
dc483132-0cff-0310-8789-
dd5450dbe970
+2005-09-22 Tom Yu <tlyu@mit.edu>
+
+ * rel_buffer.c (generic_gss_release_buffer): Free buffer even if
+ length is zero. This avoids memory leaks in some cases.
+
2005-04-07 Tom Yu <tlyu@mit.edu>
* Makefile.in (gssapi.h): Use awk hack to work around quoting
if (buffer == GSS_C_NO_BUFFER)
return(GSS_S_COMPLETE);
- if ((buffer->length) &&
- (buffer->value)) {
+ if (buffer->value) {
free(buffer->value);
buffer->length = 0;
buffer->value = NULL;