[FIX] Correctly decrement counter in case of irregular descriptor
authorDmitry Bogatov <d.bogatov@samsung.com>
Fri, 20 Sep 2013 12:30:52 +0000 (16:30 +0400)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Fri, 20 Sep 2013 13:22:15 +0000 (13:22 +0000)
Change-Id: I6d0e5a7ad2c39cfa255cdca721265dec53855355
See-also: 272fced7a209be0528725870a135393d9fc43e58
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
probe_file/da_io.h

index 3b34d9c..71d7512 100755 (executable)
@@ -179,8 +179,9 @@ static inline bool stat_regular_or_socket_p(struct stat *buf)
                PACK_COMMON_END(RVAL, newerrno, blockresult);                                   \
                PACK_RESOURCE(SIZE, FD, APITYPE, _filesize, _filepath);                         \
                FLUSH_LOCAL_BUF();                                                              \
-               POST_PACK_PROBEBLOCK_END();                                                     \
-       }
+       }                                                                                       \
+       POST_PACK_PROBEBLOCK_END();
+
 
 #define BEFORE_ORIGINAL_START_END_NOFD(API_ID, FUNCNAME, LIBNAME, APITYPE, INPUTFORMAT, ...)   \
        DECLARE_VARIABLE_FD;                                                            \