Skip to content

Commit da215a4

Browse files
committed
doc: clarify that returned EvaluationSeriesData must not be retained
1 parent cdc0f43 commit da215a4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • libs/server-sdk/include/launchdarkly/server_side/bindings/c

libs/server-sdk/include/launchdarkly/server_side/bindings/c/hook.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ typedef struct p_LDServerSDKTrackSeriesContext* LDServerSDKTrackSeriesContext;
5151
*
5252
* RETURNS:
5353
* EvaluationSeriesData to pass to afterEvaluation. Return the input data
54-
* unmodified if you don't need to add anything. Ownership transfers to SDK.
54+
* unmodified if you don't need to add anything. Ownership transfers to SDK;
55+
* the caller must not retain or access the returned pointer after returning.
5556
* If NULL is returned, an empty data object will be created.
5657
*
5758
* LIFETIME:
@@ -81,7 +82,8 @@ typedef LDServerSDKEvaluationSeriesData (*LDServerSDKHook_BeforeEvaluation)(
8182
*
8283
* RETURNS:
8384
* EvaluationSeriesData for potential future stages. Return the input data
84-
* unmodified if you don't need to modify it. Ownership transfers to SDK.
85+
* unmodified if you don't need to modify it. Ownership transfers to SDK;
86+
* the caller must not retain or access the returned pointer after returning.
8587
* If NULL is returned, an empty data object will be created.
8688
*
8789
* LIFETIME:

0 commit comments

Comments
 (0)