signature.c
7.41 KB
-
signature: don't leave a dangling pointer to the strings on parse failure · d1dbb3ae
If the signature is invalid but we detect that after allocating the strings, we free them. We however leave that pointer dangling in the structure the caller gave us, which can lead to double-free. Set these pointers to `NULL` after freeing their memory to avoid this.
Carlos Martín Nieto committed