Mercurial > trustbridge
comparison common/listutil.c @ 92:4980b0deb773
Fix memleak in case of invalid signature
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 21 Mar 2014 09:47:54 +0000 |
parents | 00f9b91f4039 |
children | 0798b9e35725 |
comparison
equal
deleted
inserted
replaced
91:80ab2168760f | 92:4980b0deb773 |
---|---|
212 } | 212 } |
213 if (ret == -1) { | 213 if (ret == -1) { |
214 /* our error */ | 214 /* our error */ |
215 retval = InvalidFormat; | 215 retval = InvalidFormat; |
216 } else { | 216 } else { |
217 return InvalidSignature; | 217 retval = InvalidSignature; |
218 } | 218 } |
219 } | 219 } |
220 | 220 |
221 if (retval != Valid && *data) { | 221 if (retval != Valid && *data) { |
222 free(*data); | 222 free(*data); |