X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Frmr%2Fcommon%2Fsrc%2Fwrapper.c;h=63f5d8aa49edcaf6ae91f6b254fdaf7c0d706249;hb=refs%2Fchanges%2F76%2F7176%2F1;hp=9d3dd72cc1a8b70864a026e684ed1ded8c9e6e73;hpb=69d7bfd7bbe046dda3afa50e0362448d60301258;p=ric-plt%2Flib%2Frmr.git diff --git a/src/rmr/common/src/wrapper.c b/src/rmr/common/src/wrapper.c index 9d3dd72..63f5d8a 100644 --- a/src/rmr/common/src/wrapper.c +++ b/src/rmr/common/src/wrapper.c @@ -84,8 +84,16 @@ static int bang_on( char* target, char* src, int max ) { return rc; } +/* + Frees the string that was allocated and returned using rmr_get_consts() +*/ +extern void rmr_free_consts( char* p) { + free(p); +} + /* Returns a set of json with the constants which are set in the header. + Caller must free the returned string using rmr_free_consts() */ extern char* rmr_get_consts( ) { int remain; // bytes remaining in wbuf