gtpu: fix memory leak 24/35924/2
authorLeung Lai Yung <benkerbuild@gmail.com>
Sat, 9 Apr 2022 10:45:12 +0000 (10:45 +0000)
committerMatthew Smith <mgsmith@netgate.com>
Thu, 14 Apr 2022 17:56:09 +0000 (17:56 +0000)
commitaad4298df0d31abe15ac40d0560b0bf196d6c1b5
tree3a25d641559070257eed45ba02f79c7510819ef7
parentb909dfc27e612e2c8dfab6a11f3a0c6f09cde61a
gtpu: fix memory leak

Type: fix

Free the old rewrite string before assigning a new rewrite string for the updated new tteid value.

Signed-off-by: Leung Lai Yung <benkerbuild@gmail.com>
Change-Id: I1ec19bce6afda3dfdc31c8724b32ac7b9bc84e89
src/plugins/gtpu/gtpu.c