summaryrefslogtreecommitdiff
path: root/lib/ptm_lib.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-12-04 18:59:47 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-12-04 18:59:47 -0500
commitb5f270ad0923e0e12584ca341df8fc1b11213225 (patch)
tree54dff21d96962474736116e7c254e6c8670d6510 /lib/ptm_lib.h
parentd17ea5225bb520a94af1b149c26e1807b929ebf1 (diff)
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>
Diffstat (limited to 'lib/ptm_lib.h')
-rw-r--r--lib/ptm_lib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ptm_lib.h b/lib/ptm_lib.h
index bc8fe4ac54..fc4d520dcb 100644
--- a/lib/ptm_lib.h
+++ b/lib/ptm_lib.h
@@ -63,5 +63,6 @@ int ptm_lib_find_key_in_msg(void *, const char *, char *);
int ptm_lib_init_msg(ptm_lib_handle_t *, int, int, void *, void **);
int ptm_lib_append_msg(ptm_lib_handle_t *, void *, const char *, const char *);
int ptm_lib_complete_msg(ptm_lib_handle_t *, void *, char *, int *);
+int ptm_lib_cleanup_msg(ptm_lib_handle_t *, void *);
#endif