In the following exmaple :
if (DACS_GetLock(30, pcTypePtr, &lock1Ptr, &lock1Len, &dacsError) == DACS_FAILURE) |
---|
{ |
if (DACS_perror(dacsErrorBuffer, sizeof(dacsErrorBuffer), (unsigned char *)"DACS_GetLock() failed with error", &dacsError) == DACS_SUCCESS) |
{ |
printf("%s\n", dacsErrorBuffer); |
} |
else |
{ |
printf("DACS_GetLock() failed\n"); |
} |
return; |
} |
using lockPtr to add permData.Do I need to explicitly free(lock1Ptr) after encoding into RsslMsg and using rsslWrite or rsslWrite automatically will deallocate memory as it does for RsslBuffer after writing?
Is there any example that talks about it where we actually use DACS_GetLock and do rsslWrite ?