rx_multi: free the quantity of memory we allocated
authorJonathan A. Kollasch <jakllsch@kollasch.net>
Sat, 21 Sep 2013 00:46:05 +0000 (00:46 +0000)
committerDerrick Brashear <shadow@your-file-system.com>
Mon, 23 Sep 2013 02:16:46 +0000 (19:16 -0700)
Change-Id: I3a666bb5c3b8b9ab222d1170095e46116fac4229
Reviewed-on: http://gerrit.openafs.org/10266
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>

src/rx/rx_multi.c

index 3362755..85cca41 100644 (file)
@@ -117,7 +117,7 @@ multi_Finalize(struct multi_handle *mh)
     MUTEX_DESTROY(&mh->lock);
     CV_DESTROY(&mh->cv);
     osi_Free(mh->calls, sizeof(struct rx_call *) * nCalls);
-    osi_Free(mh->ready, sizeof(short *) * nCalls);
+    osi_Free(mh->ready, sizeof(short) * nCalls);
     osi_Free(mh, sizeof(struct multi_handle));
 }
 
@@ -135,6 +135,6 @@ multi_Finalize_Ignore(struct multi_handle *mh)
     MUTEX_DESTROY(&mh->lock);
     CV_DESTROY(&mh->cv);
     osi_Free(mh->calls, sizeof(struct rx_call *) * nCalls);
-    osi_Free(mh->ready, sizeof(short *) * nCalls);
+    osi_Free(mh->ready, sizeof(short) * nCalls);
     osi_Free(mh, sizeof(struct multi_handle));
 }