From: Egbert E. <ei...@fr...> - 2014-02-19 15:06:27
|
From: Egbert Eich <ei...@su...> Currently the name member is set in wcmParseSerials() only, however it is dynamically allocated. thus free it when destroying the structure which contains it. Signed-off-by: Egbert Eich <ei...@su...> --- src/wcmCommon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wcmCommon.c b/src/wcmCommon.c index a0db134..afc09f9 100644 --- a/src/wcmCommon.c +++ b/src/wcmCommon.c @@ -1499,6 +1499,7 @@ void wcmFreeCommon(WacomCommonPtr *ptr) common->serials->serial, common->serials->name); + free(common->serials->name); next = common->serials->next; free(common->serials); common->serials = next; -- 1.8.1.4 |