free en commentaire

This commit is contained in:
gonzalef 2020-04-29 20:25:04 +02:00
parent 5e8b4fa928
commit afa8b4c822
1 changed files with 1 additions and 3 deletions

View File

@ -62,9 +62,7 @@ int build_padn(tlv *tlv, size_t len) {
int build_neighbour_req(tlv *tlv) {
// Free the previously allocated memory
// if (tlv != NULL) {
// free(tlv->pad1);
// }
free(tlv->pad1);
neighbour_req *new = (neighbour_req*) malloc(sizeof(neighbour_req));