Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
memif: don't leak error strings in API handlers
[vpp.git]
/
src
/
vnet
/
api_errno.h
diff --git
a/src/vnet/api_errno.h
b/src/vnet/api_errno.h
index
60e48f4
..
52f201c
100644
(file)
--- a/
src/vnet/api_errno.h
+++ b/
src/vnet/api_errno.h
@@
-42,6
+42,14
@@
vnet_api_error (clib_error_t *err)
return err->code;
}
+static_always_inline vnet_api_error_t
+vnet_get_api_error_and_free (clib_error_t *err)
+{
+ vnet_api_error_t rv = vnet_api_error (err);
+ clib_error_free (err);
+ return rv;
+}
+
#endif /* included_vnet_api_errno_h */
/*