diff options
author | Jeremy Allison <jra@samba.org> | 1998-09-28 23:55:09 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-09-28 23:55:09 +0000 |
commit | 008fd973097303ac984cd7c004e3dea67d54813d (patch) | |
tree | 9b3d2d82075cf04cbff491c9754cdedf103aeb0d /source3/smbd/trans2.c | |
parent | d455d42234ebe28f00ae360627fcb2a2f88787e0 (diff) | |
download | samba-008fd973097303ac984cd7c004e3dea67d54813d.tar.gz samba-008fd973097303ac984cd7c004e3dea67d54813d.tar.bz2 samba-008fd973097303ac984cd7c004e3dea67d54813d.zip |
Fixed problems found in lint pass over the old code by <cpeterso@microsoft.com>.
These were the problems that still existed in the 2.0 branch.
Jeremy.
(This used to be commit 3fd28812f75f2311a114ff905143634e3bbb1fac)
Diffstat (limited to 'source3/smbd/trans2.c')
-rw-r--r-- | source3/smbd/trans2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 70f834af8a..6fd0272a0a 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -1895,6 +1895,10 @@ int reply_trans2(connection_struct *conn, if ((total_params && !params) || (total_data && !data)) { DEBUG(2,("Out of memory in reply_trans2\n")); + if(params) + free(params); + if(data) + free(data); return(ERROR(ERRDOS,ERRnomem)); } |