mirror of https://github.com/ecmwf/eccodes.git
Memory leak in codes_count (if invalid message)
This commit is contained in:
parent
f67fe2567f
commit
d43fd87c74
|
@ -58,9 +58,9 @@ static int count_messages(FILE* in, int message_type, unsigned long* count)
|
|||
}
|
||||
}
|
||||
if (mesg && !err) {
|
||||
grib_context_free(c, mesg);
|
||||
(*count)++;
|
||||
}
|
||||
grib_context_free(c, mesg);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue