OSSP CVS Repository

ossp - Check-in [4277]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4277
Date: 2001-Aug-02 15:57:12 (local)
2001-Aug-02 13:57:12 (UTC)
User:simons
Branch:
Comment: Free the buffer created by xds_encode() before leaving.
Tickets:
Inspections:
Files:
ossp-pkg/xds/docs/encode.c      1.1 -> 1.2     2 inserted, 0 deleted

ossp-pkg/xds/docs/encode.c 1.1 -> 1.2

--- encode.c     2001/08/02 12:19:14     1.1
+++ encode.c     2001/08/02 13:57:12     1.2
@@ -42,6 +42,8 @@
 
     write(STDOUT_FILENO, buffer, buffer_size);
 
+    free(buffer);
+
     fprintf(stderr, "Encoded data:\n");
     fprintf(stderr, "\tint32   = %d\n", int32);
     fprintf(stderr, "\tuint32 = 0x%x\n", uint32);

CVSTrac 2.0.1