Parcourir la source

Don't leak in err_set_error_data if error queue is empty.

Caught by clang scan-build.

Change-Id: I16496bfc469e809348199057adfb24c33c426ccb
Reviewed-on: https://boringssl-review.googlesource.com/2207
Reviewed-by: Adam Langley <agl@google.com>
kris/onging/CECPQ3_patch15
David Benjamin il y a 10 ans
committed by Adam Langley
Parent
révision
4aa86f1cdf
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. +3
    -0
      crypto/err/err.c

+ 3
- 0
crypto/err/err.c Voir le fichier

@@ -474,6 +474,9 @@ static void err_set_error_data(char *data, int flags) {
struct err_error_st *error;

if (state->top == state->bottom) {
if (flags & ERR_FLAG_MALLOCED) {
OPENSSL_free(data);
}
return;
}



Chargement…
Annuler
Enregistrer