varargs cleanup (coverity)

This commit is contained in:
Howard Chu 2015-01-13 18:31:28 +00:00
parent 79cce59ad4
commit 975dce7ffb

View file

@ -105,6 +105,7 @@ backsql_strcat_x( struct berbuf *dest, void *memctx, ... )
Debug( LDAP_DEBUG_ANY, "backsql_strcat(): "
"could not reallocate string buffer.\n",
0, 0, 0 );
va_end( strs );
return NULL;
}
dest->bb_val.bv_val = tmp_dest;
@ -212,6 +213,7 @@ backsql_strfcat_x( struct berbuf *dest, void *memctx, const char *fmt, ... )
Debug( LDAP_DEBUG_ANY, "backsql_strfcat(): "
"could not reallocate string buffer.\n",
0, 0, 0 );
va_end( strs );
return NULL;
}
dest->bb_val.bv_val = tmp_dest;