]> git.proxmox.com Git - mirror_frr.git/commit
lib: Allow memory to be cleaned up for error cases in ptm
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 4 Dec 2017 23:59:47 +0000 (18:59 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 4 Dec 2017 23:59:47 +0000 (18:59 -0500)
commitb5f270ad0923e0e12584ca341df8fc1b11213225
tree54dff21d96962474736116e7c254e6c8670d6510
parentd17ea5225bb520a94af1b149c26e1807b929ebf1
lib: Allow memory to be cleaned up for error cases in ptm

ptm_lib.c had no way to cleanup after itself when an
error was detected.  This adds a function to cleanup
context in such a case.

A followup commit will use this new functionality.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/ptm_lib.c
lib/ptm_lib.h