diff --git a/src/tlv.c b/src/tlv.c index 4c4acd8..86362cf 100644 --- a/src/tlv.c +++ b/src/tlv.c @@ -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));