@@ -47,7 +47,7 @@ static void example_argv_command(valkeyContext *c, size_t n) {
4747 printf ("%s reply: %lld\n" , argv [0 ], reply -> integer );
4848 }
4949
50- freeReplyObject (reply );
50+ valkeyFreeReplyObject (reply );
5151
5252 /* Clean up */
5353 for (size_t i = 2 ; i < (n + 2 ); i ++ ) {
@@ -93,40 +93,40 @@ int main(int argc, char **argv) {
9393 /* PING server */
9494 reply = valkeyCommand (c , "PING" );
9595 printf ("PING: %s\n" , reply -> str );
96- freeReplyObject (reply );
96+ valkeyFreeReplyObject (reply );
9797
9898 /* Set a key */
9999 reply = valkeyCommand (c , "SET %s %s" , "foo" , "hello world" );
100100 printf ("SET: %s\n" , reply -> str );
101- freeReplyObject (reply );
101+ valkeyFreeReplyObject (reply );
102102
103103 /* Set a key using binary safe API */
104104 reply = valkeyCommand (c , "SET %b %b" , "bar" , (size_t )3 , "hello" , (size_t )5 );
105105 printf ("SET (binary API): %s\n" , reply -> str );
106- freeReplyObject (reply );
106+ valkeyFreeReplyObject (reply );
107107
108108 /* Try a GET and two INCR */
109109 reply = valkeyCommand (c , "GET foo" );
110110 printf ("GET foo: %s\n" , reply -> str );
111- freeReplyObject (reply );
111+ valkeyFreeReplyObject (reply );
112112
113113 reply = valkeyCommand (c , "INCR counter" );
114114 printf ("INCR counter: %lld\n" , reply -> integer );
115- freeReplyObject (reply );
115+ valkeyFreeReplyObject (reply );
116116 /* again ... */
117117 reply = valkeyCommand (c , "INCR counter" );
118118 printf ("INCR counter: %lld\n" , reply -> integer );
119- freeReplyObject (reply );
119+ valkeyFreeReplyObject (reply );
120120
121121 /* Create a list of numbers, from 0 to 9 */
122122 reply = valkeyCommand (c , "DEL mylist" );
123- freeReplyObject (reply );
123+ valkeyFreeReplyObject (reply );
124124 for (j = 0 ; j < 10 ; j ++ ) {
125125 char buf [64 ];
126126
127127 snprintf (buf , 64 , "%u" , j );
128128 reply = valkeyCommand (c , "LPUSH mylist element-%s" , buf );
129- freeReplyObject (reply );
129+ valkeyFreeReplyObject (reply );
130130 }
131131
132132 /* Let's check what we have inside the list */
@@ -136,7 +136,7 @@ int main(int argc, char **argv) {
136136 printf ("%u) %s\n" , j , reply -> element [j ]-> str );
137137 }
138138 }
139- freeReplyObject (reply );
139+ valkeyFreeReplyObject (reply );
140140
141141 /* See function for an example of valkeyCommandArgv */
142142 example_argv_command (c , 10 );
0 commit comments